home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / defaultRunTimeCommands.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  286.6 KB  |  9,634 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. // Copyright (C) 1997-2002 Alias|Wavefront,
  18. // a division of Silicon Graphics Limited.
  19. //
  20. // The information in this file is provided for the exclusive use of the
  21. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  22. // and incorporate this code into other products for purposes authorized
  23. // by the Alias|Wavefront license agreement, without fee.
  24. //
  25. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  26. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  27. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  28. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  29. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  30. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  31. // PERFORMANCE OF THIS SOFTWARE.
  32. //
  33.  
  34. global proc string getRunTimeCommandAnnotation(string $runTimeCommand)
  35. //
  36. //    Description:
  37. //        A handy proc that will simply return the annotation for the specified
  38. //        run time command.
  39. //
  40. //    Arguments:
  41. //        A runTimeCommand.
  42. //
  43. //    Returns:
  44. //        The annotation string. May be empty string.
  45. //
  46. {
  47.     string $annotation = "";
  48.  
  49.     if (`runTimeCommand -exists $runTimeCommand`) {
  50.         $annotation = `runTimeCommand -query -annotation $runTimeCommand`;
  51.     }
  52.  
  53.     return $annotation;
  54. }
  55.  
  56. // ======================================================================
  57. // ======================================================================
  58. //
  59. //    Common menu set, ie. File, Edit, Modify, Create, Display, Window,
  60. //    and Help.
  61. //
  62. // ======================================================================
  63. // ======================================================================
  64. proc commonMenus() {
  65. //
  66. //    File menu.
  67. //
  68. // ----------------------------------------------------------------------
  69.  
  70. //    Scene operations: New, Open, Save, Save As...
  71. //
  72. runTimeCommand -default true
  73.     -annotation ("New Scene: Create a new scene")
  74.     -category   ("File")
  75.     -command    ("checkForUnknownNodes(); saveChanges(\"file -f -new\")")
  76.     NewScene;
  77.  
  78. runTimeCommand -default true
  79.     -annotation ("Open Scene: Open a scene")
  80.     -category   ("File")
  81.     -command    ("projectViewer Open; checkForUnknownNodes()")
  82.     OpenScene;
  83.  
  84. runTimeCommand -default true
  85.     -annotation ("Open Scene Options")
  86.     -category   ("File")
  87.     -command    ("fileOptions \"Open\" \"projectViewer Open\"")
  88.     OpenSceneOptions;
  89.  
  90. runTimeCommand -default true
  91.     -annotation ("Optimize Scene Size: Remove unused items")
  92.     -category   ("File")
  93.     -command    ("cleanUpScene 1")
  94.     OptimizeScene;
  95.  
  96. runTimeCommand -default true
  97.     -annotation ("Optimize Scene Size Options")
  98.     -category   ("File")
  99.     -command    ("cleanUpScene 2")
  100.     OptimizeSceneOptions;
  101.  
  102. runTimeCommand -default true
  103.     -annotation ("Save Scene: Save the current scene")
  104.     -category   ("File")
  105.     -command    ("checkForUnknownNodes(); FileMenu_SaveItem")
  106.     SaveScene;
  107.  
  108. runTimeCommand -default true
  109.     -annotation ("Save Scene Options")
  110.     -category   ("File")
  111.     -command    ("fileOptions \"Save\" \"SaveScene\"")
  112.     SaveSceneOptions;
  113.  
  114. runTimeCommand -default true
  115.     -annotation ("Save Scene As: Save the current scene under a new " +
  116.                  "name or export all")
  117.     -category   ("File")
  118.     -command    ("checkForUnknownNodes(); projectViewer SaveAs")
  119.     SaveSceneAs;
  120.  
  121. runTimeCommand -default true
  122.     -annotation ("Save Scene As Options")
  123.     -category   ("File")
  124.     -command    ("fileOptions \"SaveAs\" \"projectViewer SaveAs\"")
  125.     SaveSceneAsOptions;
  126.  
  127. //    Save Preferences.
  128. //
  129. runTimeCommand -default true
  130.     -annotation ("Save Preferences: Save the current preferences")
  131.     -category   ("File")
  132.     -command    ("savePrefs;")
  133.     SavePreferences;
  134.  
  135. //    Import and Export.
  136. //
  137. runTimeCommand -default true
  138.     -annotation ("Import: Add the file to the current scene")
  139.     -category   ("File")
  140.     -command    ("projectViewer Import; checkForUnknownNodes()")
  141.     Import;
  142.  
  143. runTimeCommand -default true
  144.     -annotation ("Import Options")
  145.     -category   ("File")
  146.     -command    ("fileOptions \"Import\" \"projectViewer Import\"")
  147.     ImportOptions;
  148.  
  149. runTimeCommand -default true
  150.     -annotation ("Export All: Export entire scene (including contents " +
  151.                 "of all references) into one file")
  152.     -category   ("File")
  153.     -command    ("checkForUnknownNodes(); projectViewer ExportAll")
  154.     Export;
  155.  
  156. runTimeCommand -default true
  157.     -annotation ("Export All Options")
  158.     -category   ("File")
  159.     -command    ("fileOptions \"ExportAll\" \"projectViewer ExportAll\"")
  160.     ExportOptions;
  161.  
  162. runTimeCommand -default true
  163.     -annotation ("Export Selection: Export selected objects (and " +
  164.                 "related info) to a new file")
  165.     -category   ("File")
  166.     -command    ("checkForUnknownNodes(); projectViewer ExportActive")
  167.     ExportSelection;
  168.  
  169. runTimeCommand -default true
  170.     -annotation ("Export Selection Options")
  171.     -category   ("File")
  172.     -command    ("fileOptions \"ExportActive\" \"projectViewer ExportActive\"")
  173.     ExportSelectionOptions;
  174.  
  175. //    Reference operations.
  176. //
  177. runTimeCommand -default true
  178.     -annotation ("Create Reference: Create a reference")
  179.     -category   ("File")
  180.     -command    ("projectViewer Reference")
  181.     CreateReference;
  182.  
  183. runTimeCommand -default true
  184.     -annotation ("Create Reference Options")
  185.     -category   ("File")
  186.     -command    ("fileOptions \"Reference\" \"projectViewer Reference\"")
  187.     CreateReferenceOptions;
  188.  
  189. runTimeCommand -default true
  190.     -annotation ("Reference Editor: Edit the references for the " +
  191.                 "current scene")
  192.     -category   ("File")
  193.     -command    ("tearOffPanel \"Reference Editor\" referenceEditor true")
  194.     ReferenceEditor;
  195.  
  196. //    Project operations.
  197. //
  198. runTimeCommand -default true
  199.     -annotation ("New Project: Create a new project and make it " +
  200.                 "the current project")
  201.     -category   ("File")
  202.     -command    ("projectSetup 1")
  203.     NewProject;
  204.  
  205. runTimeCommand -default true
  206.     -annotation ("Edit Project: Edit the current project")
  207.     -category   ("File")
  208.     -command    ("projectSetup 2")
  209.     EditProject;
  210.  
  211. runTimeCommand -default true
  212.     -annotation ("Set Project: Change the current project")
  213.     -category   ("File")
  214.     -command    ("setProject \"\"")
  215.     SetProject;
  216.  
  217. //    Quit the application.
  218. //
  219. runTimeCommand -default true
  220.     -annotation ("Quit")
  221.     -category   ("File")
  222.     -command    ("quit")
  223.     Quit;
  224.  
  225. //
  226. //    Edit menu.
  227. //
  228. // ----------------------------------------------------------------------
  229.  
  230. //    Undo and Redo.
  231. //
  232. runTimeCommand -default true 
  233.     -annotation ("Undo: Undo the last action")
  234.     -category   ("Edit")
  235.     -command    ("undo")
  236.     Undo;
  237.  
  238. runTimeCommand -default true    
  239.     -annotation ("Redo: Redo the last undone action")
  240.     -category   ("Edit")
  241.     -command    ("redo")
  242.     Redo;
  243.  
  244. runTimeCommand -default true 
  245.     -annotation ("Undo View Change")
  246.     -category   ("Edit")
  247.     -command    ("viewSet -pv `hotkeyCurrentCamera`")
  248.     UndoViewChange;
  249.  
  250. runTimeCommand -default true 
  251.     -annotation ("Redo View Change")
  252.     -category   ("Edit")
  253.     -command    ("viewSet -nv `hotkeyCurrentCamera`")
  254.     RedoViewChange;
  255.  
  256. //    Repeat last.
  257. //
  258. runTimeCommand -default true 
  259.     -annotation ("Repeat Last")
  260.     -category   ("Edit")
  261.     -command    ("repeatLast")
  262.     RepeatLast;
  263.  
  264. //    Recent Commands window.
  265. //
  266. runTimeCommand -default true 
  267.     -annotation ("Recent Commands Window")
  268.     -category   ("Edit")
  269.     -command    ("recentCmdWin")
  270.     RecentCommandsWindow;
  271.  
  272. //    Cut, copy, paste, and delete keys.
  273. //
  274. runTimeCommand -default true 
  275.     -annotation ("Cut Keys: Remove keys and place on animation clipboard")
  276.     -category   ("Edit")
  277.     -command    ("performCutKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
  278.     CutKeys;
  279.  
  280. runTimeCommand -default true 
  281.     -annotation ("Cut Keys Options")
  282.     -category   ("Edit")
  283.     -command    ("performCutKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
  284.     CutKeysOptions;
  285.  
  286. runTimeCommand -default true 
  287.     -annotation ("Copy Keys: Copy keys and place on animation clipboard")
  288.     -category   ("Edit")
  289.     -command    ("performCopyKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
  290.     CopyKeys;
  291.  
  292. runTimeCommand -default true 
  293.     -annotation ("Copy Keys Options")
  294.     -category   ("Edit")
  295.     -command    ("performCopyKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
  296.     CopyKeysOptions;
  297.  
  298. runTimeCommand -default true 
  299.     -annotation ("Paste Keys: Paste keys from animation clipboard")
  300.     -category   ("Edit")
  301.     -command    ("performPasteKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
  302.     PasteKeys;
  303.  
  304. runTimeCommand -default true 
  305.     -annotation ("Paste Keys Options")
  306.     -category   ("Edit")
  307.     -command    ("performPasteKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
  308.     PasteKeysOptions;
  309.  
  310. runTimeCommand -default true 
  311.     -annotation ("Delete Keys: Delete keys but do not place on " +
  312.                 "animation clipboard")
  313.     -category   ("Edit")
  314.     -command    ("performClearKeyArgList 1 {\"0\", \"animationList\", \"0\", \"0\"}")
  315.     DeleteKeys;
  316.  
  317. runTimeCommand -default true 
  318.     -annotation ("Delete Keys Options")
  319.     -category   ("Edit")
  320.     -command    ("performClearKeyArgList 1 {\"1\", \"animationList\", \"0\", \"0\"}")
  321.     DeleteKeysOptions;
  322.  
  323. runTimeCommand -default true 
  324.     -annotation ("Scale Keys: Scale keyed animation in time and/or value")
  325.     -category   ("Edit")
  326.     -command    ("performScaleKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
  327.     ScaleKeys;
  328.  
  329. runTimeCommand -default true 
  330.     -annotation ("Scale Keys Options")
  331.     -category   ("Edit")
  332.     -command    ("performScaleKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
  333.     ScaleKeysOptions;
  334.  
  335. runTimeCommand -default true 
  336.     -annotation ("Snap Keys: Snap keys to integer times")
  337.     -category   ("Edit")
  338.     -command    ("performSnapKeyArgList 1 { \"0\",  \"animationList\", \"0\" }")
  339.     SnapKeys;
  340.  
  341. runTimeCommand -default true 
  342.     -annotation ("Snap Keys Options")
  343.     -category   ("Edit")
  344.     -command    ("performSnapKeyArgList 1 { \"1\",  \"animationList\", \"0\" }")
  345.     SnapKeysOptions;
  346.  
  347. //    Bake simulation.
  348. //
  349. runTimeCommand -default true 
  350.     -annotation ("Bake Simulation: Bake existing animation into keys")
  351.     -category   ("Edit")
  352.     -command    ("performBakeSimulationArgList 1 { \"0\",  \"animationList\"}")
  353.     BakeSimulation;
  354.  
  355. runTimeCommand -default true 
  356.     -annotation ("Bake Simulation Options")
  357.     -category   ("Edit")
  358.     -command    ("performBakeSimulationArgList 1 {\"1\", \"animationList\"}")
  359.     BakeSimulationOptions;
  360.  
  361. //  Cut
  362. //
  363. runTimeCommand -default true 
  364.     -annotation ("Cut Selected")
  365.     -category   ("Edit")
  366.     -command    ("cutCopyPaste \"cut\"")
  367.     CutSelected;
  368.  
  369. //  Copy
  370. //
  371. runTimeCommand -default true 
  372.     -annotation ("Copy Selected")
  373.     -category   ("Edit")
  374.     -command    ("cutCopyPaste \"copy\"")
  375.     CopySelected;
  376.  
  377. //  Paste
  378. //
  379. runTimeCommand -default true 
  380.     -annotation ("Paste Selected")
  381.     -category   ("Edit")
  382.     -command    ("cutCopyPaste \"paste\"")
  383.     PasteSelected;
  384.  
  385. //    Delete.
  386. //
  387. runTimeCommand -default true 
  388.     -annotation ("Delete: Delete the selected object(s)")
  389.     -category   ("Edit")
  390.     -command    ("delete")
  391.     Delete;
  392.  
  393. //    Delete history.
  394. //
  395. runTimeCommand -default true 
  396.     -annotation ("Delete History: Delete construction history on " +
  397.                 "the selected object(s)")
  398.     -category   ("Edit")
  399.     -command    ("delete -ch")
  400.     DeleteHistory;
  401.  
  402. //    Delete Channels.
  403. //
  404. runTimeCommand -default true 
  405.     -annotation ("Delete Channels: Delete channels on the selected object(s)")
  406.     -category   ("Edit")
  407.     -command    ("performDeleteChannels false")
  408.     DeleteChannels;
  409.  
  410. runTimeCommand -default true 
  411.     -annotation ("Delete Channels Options")
  412.     -category   ("Edit")
  413.     -command    ("performDeleteChannels true")
  414.     DeleteChannelsOptions;
  415.  
  416. //    Delete Static Channels.
  417. //
  418. runTimeCommand -default true 
  419.     -annotation ("Delete Static Channels: Delete static channels " +
  420.                  "on the selected object(s)")
  421.     -category   ("Edit")
  422.     -command    ("performDeleteStaticChannels false")
  423.     DeleteStaticChannels;
  424.  
  425. runTimeCommand -default true 
  426.     -annotation ("Delete Static Channels Options")
  427.     -category   ("Edit")
  428.     -command    ("performDeleteStaticChannels true")
  429.     DeleteStaticChannelsOptions;
  430.  
  431. //    Delete Motion Paths.
  432. //
  433. runTimeCommand -default true 
  434.     -annotation ("Delete Motion Paths: Delete motion paths on " +
  435.                  "the selected object(s)")
  436.     -category   ("Edit")
  437.     -command    ("delete -mp")
  438.     DeleteMotionPaths;
  439.  
  440. //    Delete Expressions.
  441. //
  442. runTimeCommand -default true 
  443.     -annotation ("Delete Expressions: Delete expressions on " +
  444.                  "the selected object(s)")
  445.     -category   ("Edit")
  446.     -command    ("performDeleteExpressions false")
  447.     DeleteExpressions;
  448.  
  449. runTimeCommand -default true 
  450.     -annotation ("Delete Expressions Options")
  451.     -category   ("Edit")
  452.     -command    ("performDeleteExpressions true")
  453.     DeleteExpressionsOptions;
  454.  
  455. //    Delete Constraints.
  456. //
  457. runTimeCommand -default true 
  458.     -annotation ("Delete Constraints: Delete constraints on the " +
  459.                  "selected object(s)")
  460.     -category   ("Edit")
  461.     -command    ("delete -constraints")
  462.     DeleteConstraints;
  463.  
  464. //    Delete Rigid Bodies.
  465. //
  466. runTimeCommand -default true 
  467.     -annotation ("Delete Rigid Bodies: Delete rigid bodies " +
  468.                  "on the selected object(s)")
  469.     -category   ("Edit")
  470.     -command    ("deleteSelectRigidBodies")
  471.     DeleteRigidBodies;
  472.  
  473. //    Delete all History.
  474. //
  475. runTimeCommand -default true 
  476.     -annotation ("Delete All History: Delete History on all objects")
  477.     -category   ("Edit")
  478.     -command    ("delete -all -constructionHistory")
  479.     DeleteAllHistory;
  480.  
  481. //    Delete all Channels.
  482. //
  483. runTimeCommand -default true 
  484.     -annotation ("Delete All Channels")
  485.     -category   ("Edit")
  486.     -command    ("delete -all -channels")
  487.     DeleteAllChannels;
  488.  
  489. //    Delete all Static Channels.
  490. //
  491. runTimeCommand -default true 
  492.     -annotation ("Delete All Static Channels")
  493.     -category   ("Edit")
  494.     -command    ("delete -all -staticChannels")
  495.     DeleteAllStaticChannels;
  496.  
  497. //    Delete all Clips.
  498. //
  499. runTimeCommand -default true 
  500.     -annotation ("Delete All Clips")
  501.     -category   ("Edit")
  502.     -command    ("delete `clip -q -allClips`")
  503.     DeleteAllClips;
  504.  
  505. //    Delete all Poses.
  506. //
  507. runTimeCommand -default true 
  508.     -annotation ("Delete All Poses")
  509.     -category   ("Edit")
  510.     -command    ("delete `pose -q -allPoses`")
  511.     DeleteAllPoses;
  512.  
  513. //    Delete all Motion Paths.
  514. //
  515. runTimeCommand -default true 
  516.     -annotation ("Delete All Motion Paths")
  517.     -category   ("Edit")
  518.     -command    ("delete -all -motionPaths")
  519.     DeleteAllMotionPaths;
  520.  
  521. //    Delete all Expressions.
  522. //
  523. runTimeCommand -default true 
  524.     -annotation ("Delete All Expressions")
  525.     -category   ("Edit")
  526.     -command    ("delete -all -expressions")
  527.     DeleteAllExpressions;
  528.  
  529. //    Delete all Constraints.
  530. //
  531. runTimeCommand -default true 
  532.     -annotation ("Delete All Constraints")
  533.     -category   ("Edit")
  534.     -command    ("delete -all -constraints")
  535.     DeleteAllConstraints;
  536.  
  537. //    Delete all Sounds.
  538. //
  539. runTimeCommand -default true 
  540.     -annotation ("Delete All Sounds")
  541.     -category   ("Edit")
  542.     -command    ("delete `ls -type audio`")
  543.     DeleteAllSounds;
  544.  
  545. //    Delete all Joints.
  546. //
  547. runTimeCommand -default true 
  548.     -annotation ("Delete All Joints")
  549.     -category   ("Edit")
  550.     -command    ("delete `ls -type joint`")
  551.     DeleteAllJoints;
  552.  
  553. //    Delete all IK Handles.
  554. //
  555. runTimeCommand -default true 
  556.     -annotation ("Delete All IK Handles")
  557.     -category   ("Edit")
  558.     -command    ("delete `ls -type ikHandle`")
  559.     DeleteAllIKHandles;
  560.  
  561. //    Delete all Lattices.
  562. //
  563. runTimeCommand -default true 
  564.     -annotation ("Delete All Lattices")
  565.     -category   ("Edit")
  566.     -command    ("delete `ls -type ffd`; delete `ls -type lattice`")
  567.     DeleteAllLattices;
  568.  
  569. //    Delete all Clusters.
  570. //
  571. runTimeCommand -default true 
  572.     -annotation ("Delete All Clusters")
  573.     -category   ("Edit")
  574.     -command    ("delete `ls -type cluster`")
  575.     DeleteAllClusters;
  576.  
  577. //    Delete all Sculpt Objects.
  578. //
  579. runTimeCommand -default true 
  580.     -annotation ("Delete All Sculpt Objects")
  581.     -category   ("Edit")
  582.     -command    ("delete `ls -type sculpt`; " +
  583.                  "delete `ls -type implicitSphere`")
  584.     DeleteAllSculptObjects;
  585.  
  586. //    Delete all Wires.
  587. //
  588. runTimeCommand -default true 
  589.     -annotation ("Delete All Wires")
  590.     -category   ("Edit")
  591.     -command    ("delete `ls -type wire`")
  592.     DeleteAllWires;
  593.  
  594. //    Delete all Non-linear Deformers.
  595. //
  596. runTimeCommand -default true 
  597.     -annotation ("Delete All Nonlinear Deformers")
  598.     -category   ("Edit")
  599.     -command    ("delete `ls -type nonLinear`")
  600.     DeleteAllNonLinearDeformers;
  601.  
  602. //    Delete all Lights.
  603. //
  604. runTimeCommand -default true 
  605.     -annotation ("Delete All Lights")
  606.     -category   ("Edit")
  607.     -command    ("delete `listTransforms -lights`")
  608.     DeleteAllLights;
  609.  
  610. //    Delete all Cameras.
  611. //
  612. runTimeCommand -default true 
  613.     -annotation ("Delete All Cameras")
  614.     -category   ("Edit")
  615.     -command    ("delete `listTransforms -cameras`")
  616.     DeleteAllCameras;
  617.  
  618. //    Delete all Image Planes.
  619. //
  620. runTimeCommand -default true 
  621.     -annotation ("Delete All Image Planes")
  622.     -category   ("Edit")
  623.     -command    ("delete `ls -type imagePlane`")
  624.     DeleteAllImagePlanes;
  625.  
  626. //    Delete all Shading Groups and Materials.
  627. //
  628. runTimeCommand -default true 
  629.     -annotation ("Delete All Shading Groups and Materials")
  630.     -category   ("Edit")
  631.     -command    ("deleteShadingGroupsAndMaterials")
  632.     DeleteAllShadingGroupsAndMaterials;
  633.  
  634. //    Delete all Particles.
  635. //
  636. runTimeCommand -default true 
  637.     -annotation ("Delete All Particles")
  638.     -category   ("Edit")
  639.     -command    ("delete `listTransforms \"-type particle\"`")
  640.     DeleteAllParticles;
  641.  
  642. //    Delete all Fluids.
  643. //
  644. if( !`about -mac` ) {
  645.     runTimeCommand -default true 
  646.         -annotation ("Delete All Fluids")
  647.         -category   ("Edit")
  648.         -command    ("delete `listTransforms \"-type fluidShape\"`")
  649.         DeleteAllFluids;
  650. }
  651.  
  652. //    Delete all Rigid Bodies.
  653. //
  654. runTimeCommand -default true 
  655.     -annotation ("Delete All Rigid Bodies")
  656.     -category   ("Edit")
  657.     -command    ("delete `ls -type rigidBody`")
  658.     DeleteAllRigidBodies;
  659.  
  660. //    Delete all Rigid Constraints.
  661. //
  662. runTimeCommand -default true 
  663.     -annotation ("Delete All Rigid Constraints")
  664.     -category   ("Edit")
  665.     -command    ("delete `ls -type rigidConstraint`")
  666.     DeleteAllRigidConstraints;
  667.  
  668. //    Delete all Strokes.
  669. //
  670. runTimeCommand -default true 
  671.     -annotation ("Delete All Strokes")
  672.     -category   ("Edit")
  673.     -command    ("deleteAllStrokes()")
  674.     DeleteAllStrokes;
  675.  
  676. //    Select all.
  677. //
  678. runTimeCommand -default true
  679.     -annotation ("Select All")
  680.     -category   ("Edit")
  681.     -command    ("select -allDagObjects")
  682.     SelectAll;
  683.  
  684. //    Invert Selection.
  685. //
  686. runTimeCommand -default true
  687.     -annotation ("Invert Selection")
  688.     -category   ("Edit")
  689.     -command    ("select -toggle -allDagObjects -visible")
  690.     InvertSelection;
  691.  
  692. //    Select all Joints.
  693. //
  694. runTimeCommand -default true
  695.     -annotation ("Select All Joints")
  696.     -category   ("Edit")
  697.     -command    ("select -r `ls -type joint`")
  698.     SelectAllJoints;
  699.  
  700. //    Select all IK Handles.
  701. //
  702. runTimeCommand -default true
  703.     -annotation ("Select All IK Handles")
  704.     -category   ("Edit")
  705.     -command    ("select -r `ls -type ikHandle`")
  706.     SelectAllIKHandles;
  707.  
  708. //    Select all Lattices.
  709. //
  710. runTimeCommand -default true
  711.     -annotation ("Select All Lattices")
  712.     -category   ("Edit")
  713.     -command    ("select -r `listTransforms \"-type lattice\"`")
  714.     SelectAllLattices;
  715.  
  716. //    Select all Clusters.
  717. //
  718. runTimeCommand -default true
  719.     -annotation ("Select All Clusters")
  720.     -category   ("Edit")
  721.     -command    ("select `listTransforms \"-type clusterHandle\"`")
  722.     SelectAllClusters;
  723.  
  724. //    Select all Sculpt Objects.
  725. //
  726. runTimeCommand -default true
  727.     -annotation ("Select All Sculpt Objects")
  728.     -category   ("Edit")
  729.     -command    ("select -r `listTransforms \" -type implicitSphere -type sculpt\"`")
  730.     SelectAllSculptObjects;
  731.  
  732. //    Select all Wires.
  733. //
  734. runTimeCommand -default true
  735.     -annotation ("Select All Wires")
  736.     -category   ("Edit")
  737.     -command    ("select -r `ls -type wire`")
  738.     SelectAllWires;
  739.  
  740. //    Select all Transforms.
  741. //
  742. runTimeCommand -default true
  743.     -annotation ("Select All Transforms")
  744.     -category   ("Edit")
  745.     -command    ("select -r `ls -type transform`")
  746.     SelectAllTransforms;
  747.  
  748. //    Select all Geometry.
  749. //
  750. runTimeCommand -default true
  751.     -annotation ("Select All Geometry")
  752.     -category   ("Edit")
  753.     -command    ("select -r `listTransforms -geometry`")
  754.     SelectAllGeometry;
  755.  
  756. //    Select all NURBS Curves.
  757. //
  758. runTimeCommand -default true
  759.     -annotation ("Select All NURBS Curves")
  760.     -category   ("Edit")
  761.     -command    ("select -r `listTransforms \"-type nurbsCurve\"`")
  762.     SelectAllNURBSCurves;
  763.  
  764. //    Select all NURBS Surfaces.
  765. //
  766. runTimeCommand -default true
  767.     -annotation ("Select All NURBS Surfaces")
  768.     -category   ("Edit")
  769.     -command    ("select -r `listTransforms \"-type nurbsSurface\"`")
  770.     SelectAllNURBSSurfaces;
  771.  
  772. //    Select all Polygon Geometry.
  773. //
  774. runTimeCommand -default true
  775.     -annotation ("Select All Polygon Geometry")
  776.     -category   ("Edit")
  777.     -command    ("select -r `listTransforms \"-type mesh\"`")
  778.     SelectAllPolygonGeometry;
  779.  
  780. //    Select all Subdiv Geometry.
  781. //
  782. runTimeCommand -default true
  783.     -annotation ("Select All Subdiv Geometry")
  784.     -category   ("Edit")
  785.     -command    ("select -r `listTransforms \"-type subdiv\"`")
  786.     SelectAllSubdivGeometry;
  787.  
  788. //    Select all Lights.
  789. //
  790. runTimeCommand -default true
  791.     -annotation ("Select All Lights")
  792.     -category   ("Edit")
  793.     -command    ("select -r `listTransforms -lights`")
  794.     SelectAllLights;
  795.  
  796. //    Select all Cameras.
  797. //
  798. runTimeCommand -default true
  799.     -annotation ("Select All Cameras")
  800.     -category   ("Edit")
  801.     -command    ("select -r `listTransforms -cameras`")
  802.     SelectAllCameras;
  803.  
  804. //    Select all Image Planes.
  805. //
  806. runTimeCommand -default true
  807.     -annotation ("Select All Image Planes")
  808.     -category   ("Edit")
  809.     -command    ("select -r `ls -type imagePlane`")
  810.     SelectAllImagePlanes;
  811.  
  812. //    Select all Particles.
  813. //
  814. runTimeCommand -default true
  815.     -annotation ("Select All Particles")
  816.     -category   ("Edit")
  817.     -command    ("select -r `listTransforms \"-type particle\"`")
  818.     SelectAllParticles;
  819.  
  820. //    Select all Fluids.
  821. //
  822. if( !`about -mac` ) {
  823.     runTimeCommand -default true
  824.         -annotation ("Select All Fluids")
  825.         -category   ("Edit")
  826.         -command    ("select -r `listTransforms \"-type fluidShape\"`")
  827.         SelectAllFluids;
  828. }
  829.  
  830. //    Select all Rigid Bodies.
  831. //
  832. runTimeCommand -default true
  833.     -annotation ("Select All Rigid Bodies")
  834.     -category   ("Edit")
  835.     -command    ("select -r `listTransforms \"-type rigidBody\"`")
  836.     SelectAllRigidBodies;
  837.  
  838. //    Select all Rigid Constraints.
  839. //
  840. runTimeCommand -default true
  841.     -annotation ("Select All Rigid Constraints")
  842.     -category   ("Edit")
  843.     -command    ("select -r `ls -type rigidConstraint`")
  844.     SelectAllRigidConstraints;
  845.  
  846. //    Select all Strokes.
  847. //
  848. runTimeCommand -default true
  849.     -annotation ("Select All Strokes")
  850.     -category   ("Edit")
  851.     -command    ("select -r `listTransforms \"-type stroke\"`")
  852.     SelectAllStrokes;
  853.  
  854. //    Select all Brushes.
  855. //
  856. runTimeCommand -default true
  857.     -annotation ("Select All Brushes")
  858.     -category   ("Edit")
  859.     -command    ("select -r `ls -type brush`")
  860.     SelectAllBrushes;
  861.  
  862. //    Paint Selection Tool.
  863. //
  864. runTimeCommand -default true
  865.     -annotation ("Paint Selection Tool: Paint selection of CVs, vertices, "
  866.                 + "faces, and edges")
  867.     -category   ("Edit")
  868.     -command    ("artSelectToolScript 4")
  869.     ArtPaintSelectTool;
  870.  
  871. runTimeCommand -default true
  872.     -annotation ("Artisan Paint Select Tool Options")
  873.     -category   ("Edit")
  874.     -command    ("artSelectToolScript 3")
  875.     ArtPaintSelectToolOptions;
  876.  
  877. runTimeCommand -default true
  878.     -annotation ("Select Hierarchy")
  879.     -category   ("Edit")
  880.     -command    ("select -hierarchy")
  881.     SelectHierarchy;
  882.  
  883. //    Duplicate.
  884. //
  885. runTimeCommand -default true
  886.     -annotation ("Duplicate: Duplicate the selected object(s)")
  887.     -category   ("Edit")
  888.     -command    ("performDuplicate false")
  889.     Duplicate;
  890.  
  891. runTimeCommand -default true
  892.     -annotation ("Duplicate Options")
  893.     -category   ("Edit")
  894.     -command    ("performDuplicate true")
  895.     DuplicateOptions;
  896.  
  897. runTimeCommand -default true
  898.     -annotation ("Duplicate with Transform")
  899.     -category   ("Edit")
  900.     -command    ("evalEcho(\"duplicate -smartTransform\")")
  901.     DuplicateWithTransform;
  902.  
  903. //    Group.
  904. //
  905. runTimeCommand -default true
  906.     -annotation ("Group: Group the selected object(s)")
  907.     -category   ("Edit")
  908.     -command    ("performGroup false")
  909.     Group;
  910.  
  911. runTimeCommand -default true
  912.     -annotation ("Group Options")
  913.     -category   ("Edit")
  914.     -command    ("performGroup true")
  915.     GroupOptions;
  916.  
  917. //    Ungroup.
  918. //
  919. runTimeCommand -default true
  920.     -annotation ("Ungroup: Ungroup the selected object(s)")
  921.     -category   ("Edit")
  922.     -command    ("performUngroup false")
  923.     Ungroup;
  924.  
  925. runTimeCommand -default true
  926.     -annotation ("Ungroup Options")
  927.     -category   ("Edit")
  928.     -command    ("performUngroup true")
  929.     UngroupOptions;
  930.  
  931. //    Create Empty Group.
  932. //
  933. runTimeCommand -default true
  934.     -annotation ("Create Empty Group: Create a transform node " +
  935.                  "with no children")
  936.     -category   ("Edit")
  937.     -command    ("group -empty")
  938.     CreateEmptyGroup;
  939.  
  940. //    Level of Detail Group/Ungroup.
  941. //
  942. runTimeCommand -default true
  943.     -annotation ("Group Level of Detail: Select 2 or more " +
  944.                  "transforms, high resolution first")
  945.     -category   ("Edit")
  946.     -command    ("performSetupLod")
  947.     LevelOfDetailGroup;
  948.  
  949. runTimeCommand -default true
  950.     -annotation ("Ungroup Level of Detail: Ungroup the selected " +
  951.                  "Level of Detail object(s)")
  952.     -category   ("Edit")
  953.     -command    ("performDeleteLod")
  954.     LevelOfDetailUngroup;
  955.  
  956. //    Parent.
  957. //
  958. runTimeCommand -default true
  959.     -annotation ("Parent: Parent the selected object(s) to the " +
  960.                  "last selected object")
  961.     -category   ("Edit")
  962.     -command    ("performParent false")
  963.     Parent;
  964.  
  965. runTimeCommand -default true
  966.     -annotation ("Parent Options")
  967.     -category   ("Edit")
  968.     -command    ("performParent true")
  969.     ParentOptions;
  970.  
  971. //    Unparent.
  972. //
  973. runTimeCommand -default true
  974.     -annotation ("Unparent: Unparent the selected object(s)")
  975.     -category   ("Edit")
  976.     -command    ("performUnparent false")
  977.     Unparent;
  978.  
  979. runTimeCommand -default true
  980.     -annotation ("Unparent Options")
  981.     -category   ("Edit")
  982.     -command    ("performUnparent true")
  983.     UnparentOptions;
  984.  
  985. //    Sets and Partitions.
  986. //
  987. runTimeCommand -default true
  988.     -annotation ("Create Set: Make a set containing the selected object(s)")
  989.     -category   ("Edit")
  990.     -command    ("performCreateSet false")
  991.     CreateSet;
  992.  
  993. runTimeCommand -default true
  994.     -annotation ("Create Set Options")
  995.     -category   ("Edit")
  996.     -command    ("performCreateSet true")
  997.     CreateSetOptions;
  998.  
  999. runTimeCommand -default true
  1000.     -annotation ("Create Partition: Make a partition containing " +
  1001.                  "the selected set(s)")
  1002.     -category   ("Edit")
  1003.     -command    ("performCreatePartition false")
  1004.     CreatePartition;
  1005.  
  1006. runTimeCommand -default true
  1007.     -annotation ("Create Partition Options")
  1008.     -category   ("Edit")
  1009.     -command    ("performCreatePartition true")
  1010.     CreatePartitionOptions;
  1011.  
  1012. runTimeCommand -default true
  1013.     -annotation ("Create Quick Select Set: Create set and add " +
  1014.                  "it to the Quick Select Set menu")
  1015.     -category   ("Edit")
  1016.     -command    ("defineCharacter")
  1017.     CreateQuickSelectSet;
  1018.  
  1019. //
  1020. //    Modify menu.
  1021. //
  1022. // ----------------------------------------------------------------------
  1023.  
  1024. runTimeCommand -default true
  1025.     -annotation ("Move/Rotate/Scale Tool: Toggle Relative Snap Mode")
  1026.     -category   ("Modify")
  1027.     -command    ("manipMoveContext -e -snap (!`manipMoveContext -q -snap Move`) Move;" + 
  1028.                  "manipMoveContext -e -snapRelative (!`manipMoveContext -q -snapRelative Move `) Move;" + 
  1029.                  "manipRotateContext -e -snap (!`manipRotateContext -q -snap Rotate`) Rotate;" + 
  1030.                  "manipRotateContext -e -snapRelative (!`manipRotateContext -q -snapRelative Rotate`) Rotate;" + 
  1031.                  "manipScaleContext -e -snap (!`manipScaleContext -q -snap Scale`) Scale;" + 
  1032.                  "manipScaleContext -e -snapRelative (!`manipScaleContext -q -snapRelative Scale`) Scale;"
  1033.                  )
  1034.     MoveRotateScaleToolToggleSnapRelativeMode;
  1035.     
  1036. runTimeCommand -default true
  1037.     -annotation ("Move Tool: Select any object(s) or component(s)")
  1038.     -category   ("Modify")
  1039.     -command    ("setToolTo $gMove")
  1040.     MoveTool;
  1041.  
  1042. runTimeCommand -default true
  1043.     -annotation ("Move Tool Options")
  1044.     -category   ("Modify")
  1045.     -command    ("setToolTo $gMove; toolPropertyWindow")
  1046.     MoveToolOptions;
  1047.  
  1048. runTimeCommand -default true
  1049.     -annotation ("Rotate Tool: Select any object(s) or component(s)")
  1050.     -category   ("Modify")
  1051.     -command    ("setToolTo $gRotate")
  1052.     RotateTool;
  1053.  
  1054. runTimeCommand -default true
  1055.     -annotation ("Move/Rotate/Scale Tool Toggle Snap Mode")
  1056.     -category   ("Modify")
  1057.     -command    ("manipRotateContext -e -snap (!`manipRotateContext -q -snap Rotate`) Rotate;" +
  1058.                  "manipMoveContext -e -snap (!`manipMoveContext -q -snap Move`) Move;" + 
  1059.                  "manipScaleContext -e -snap (!`manipScaleContext -q -snap Scale`) Scale;")
  1060.     MoveRotateScaleToolToggleSnapMode;
  1061.  
  1062. runTimeCommand -default true
  1063.     -annotation ("Rotate Tool Options")
  1064.     -category   ("Modify")
  1065.     -command    ("setToolTo $gRotate; toolPropertyWindow")
  1066.     RotateToolOptions;
  1067.  
  1068. runTimeCommand -default true
  1069.     -annotation ("Scale Tool: Select any object(s) or component(s)")
  1070.     -category   ("Modify")
  1071.     -command    ("setToolTo $gScale")
  1072.     ScaleTool;
  1073.  
  1074. runTimeCommand -default true
  1075.     -annotation ("Scale Tool Options")
  1076.     -category   ("Modify")
  1077.     -command    ("setToolTo $gScale; toolPropertyWindow")
  1078.     ScaleToolOptions;
  1079.  
  1080. runTimeCommand -default true
  1081.     -annotation ("Move/Rotate/Scale Tool: Select any object(s) " +
  1082.                  "or component(s)")
  1083.     -category   ("Modify")
  1084.     -command    ("setToolTo $gTransform")
  1085.     MoveRotateScaleTool;
  1086.  
  1087. runTimeCommand -default true
  1088.     -annotation ("Move Normal Tool: Select any NURBS control " +
  1089.                  "vertices, mesh vertices")
  1090.     -category   ("Modify")
  1091.     -command    ("setToolTo $gMoveNormal")
  1092.     MoveNormalTool;
  1093.  
  1094. runTimeCommand -default true
  1095.     -annotation ("Move Normal Tool Options")
  1096.     -category   ("Modify")
  1097.     -command    ("setToolTo $gMoveNormal; toolPropertyWindow")
  1098.     MoveNormalToolOptions;
  1099.  
  1100. runTimeCommand -default true
  1101.     -annotation ("Show Manipulator Tool: Select any node")
  1102.     -category   ("Modify")
  1103.     -command    ("setToolTo $gshowManip")
  1104.     ShowManipulatorTool;
  1105.  
  1106. runTimeCommand -default true
  1107.     -annotation ("Proportional Modification Tool: Select objects " +
  1108.                  "or components to proportionally modify them")
  1109.     -category   ("Modify")
  1110.     -command    ("setToolTo $gPropMod")
  1111.     ProportionalModificationTool;
  1112.  
  1113. runTimeCommand -default true
  1114.     -annotation ("Reset Transformation: Select an object(s)")
  1115.     -category   ("Modify")
  1116.     -command    ("performResetTransformations(0)")
  1117.     ResetTransformations;
  1118.  
  1119. runTimeCommand -default true
  1120.     -annotation ("Reset Transformation Options")
  1121.     -category   ("Modify")
  1122.     -command    ("performResetTransformations 1")
  1123.     ResetTransformationsOptions;
  1124.  
  1125. runTimeCommand -default true
  1126.     -annotation ("Freeze Transformation: Select an object(s)")
  1127.     -category   ("Modify")
  1128.     -command    ("performFreezeTransformations(0)")
  1129.     FreezeTransformations;
  1130.  
  1131. runTimeCommand -default true
  1132.     -annotation ("Freeze Transformation Options")
  1133.     -category   ("Modify")
  1134.     -command    ("performFreezeTransformations 1")
  1135.     FreezeTransformationsOptions;
  1136.  
  1137. runTimeCommand -default true
  1138.     -annotation ("Snap Point to Point: Select any type of point " +
  1139.                  "object or component")
  1140.     -category   ("Modify")
  1141.     -command    ("snapPointToPoint(0)")
  1142.     SnapPointToPoint;
  1143.  
  1144. runTimeCommand -default true
  1145.     -annotation ("Snap Point to Point Options")
  1146.     -category   ("Modify")
  1147.     -command    ("performSnapPtToPt 1")
  1148.     SnapPointToPointOptions;
  1149.  
  1150. runTimeCommand -default true
  1151.     -annotation ("Snap 2 Points to 2 Points: Select any type of " +
  1152.                  "point object or component")
  1153.     -category   ("Modify")
  1154.     -command    ("performSnap2PtTo2Pt 0")
  1155.     Snap2PointsTo2Points;
  1156.  
  1157. runTimeCommand -default true
  1158.     -annotation ("Snap 2 Points to 2 Points Options")
  1159.     -category   ("Modify")
  1160.     -command    ("performSnap2PtTo2Pt 1")
  1161.     Snap2PointsTo2PointsOptions;
  1162.  
  1163. runTimeCommand -default true
  1164.     -annotation ("Snap 3 Points to 3 Points: Select any type of " +
  1165.                  "point object or component")
  1166.     -category   ("Modify")
  1167.     -command    ("performSnap3PtTo3Pt 0")
  1168.     Snap3PointsTo3Points;
  1169.  
  1170. runTimeCommand -default true
  1171.     -annotation ("Snap 3 Points to 3 Points Options")
  1172.     -category   ("Modify")
  1173.     -command    ("performSnap3PtTo3Pt 1")
  1174.     Snap3PointsTo3PointsOptions;
  1175.  
  1176. runTimeCommand -default true
  1177.     -annotation ("Enable All: Enable evaluation of all nodes")
  1178.     -category   ("Modify")
  1179.     -command    ("doEnableNodeItems true all")
  1180.     EnableAll;
  1181.  
  1182. runTimeCommand -default true
  1183.     -annotation ("Enable IK Solvers: Enable evaluation of all IK solvers")
  1184.     -category   ("Modify")
  1185.     -command    ("doEnableNodeItems true iksolver")
  1186.     EnableIKSolvers;
  1187.  
  1188. runTimeCommand -default true
  1189.     -annotation ("Enable Constraints: Enable evaluation of all Constraints")
  1190.     -category   ("Modify")
  1191.     -command    ("doEnableNodeItems true constraint")
  1192.     EnableConstraints;
  1193.  
  1194. runTimeCommand -default true
  1195.     -annotation ("Enable Expressions: Enable evaluation of all Expressions")
  1196.     -category   ("Modify")
  1197.     -command    ("doEnableNodeItems true expression")
  1198.     EnableExpressions;
  1199.  
  1200. if( !`about -mac` ) {
  1201.     runTimeCommand -default true
  1202.         -annotation ("Enable Fluids: Enable evaluation of all Fluids")
  1203.         -category   ("Modify")
  1204.         -command    ("doEnableNodeItems true fluid")
  1205.         EnableFluids;
  1206. }
  1207.  
  1208. runTimeCommand -default true
  1209.     -annotation ("Enable Global Stitch: Enable evaluation of all Global Stitch nodes")
  1210.     -category   ("Modify")
  1211.     -command    ("doEnableNodeItems true globalstitch")
  1212.     EnableGlobalStitch;
  1213.  
  1214. runTimeCommand -default true
  1215.     -annotation ("Enable Particles: Enable evaluation of all Particles")
  1216.     -category   ("Modify")
  1217.     -command    ("doEnableNodeItems true particle")
  1218.     EnableParticles;
  1219.  
  1220. runTimeCommand -default true
  1221.     -annotation ("Enable Rigid Bodies: Enable evaluation of all Rigid Bodies")
  1222.     -category   ("Modify")
  1223.     -command    ("doEnableNodeItems true rigidbody")
  1224.     EnableRigidBodies;
  1225.  
  1226. runTimeCommand -default true
  1227.     -annotation ("Enable Snapshots: Enable evaluation of all Snapshot nodes")
  1228.     -category   ("Modify")
  1229.     -command    ("doEnableNodeItems true snapshot")
  1230.     EnableSnapshots;
  1231.  
  1232. runTimeCommand -default true
  1233.     -annotation ("Disable All: Disable evaluation of all nodes")
  1234.     -category   ("Modify")
  1235.     -command    ("doEnableNodeItems false all")
  1236.     DisableAll;
  1237.  
  1238. runTimeCommand -default true
  1239.     -annotation ("Disable IK Solvers: Disable evaluation of all IK solvers")
  1240.     -category   ("Modify")
  1241.     -command    ("doEnableNodeItems false iksolver")
  1242.     DisableIKSolvers;
  1243.  
  1244. runTimeCommand -default true
  1245.     -annotation ("Disable Constraints: Disable evaluation of all Constraints")
  1246.     -category   ("Modify")
  1247.     -command    ("doEnableNodeItems false constraint")
  1248.     DisableConstraints;
  1249.  
  1250. runTimeCommand -default true
  1251.     -annotation ("Disable Expressions: Disable evaluation of all Expressions")
  1252.     -category   ("Modify")
  1253.     -command    ("doEnableNodeItems false expression")
  1254.     DisableExpressions;
  1255.  
  1256. if( !`about -mac` ) {
  1257.     runTimeCommand -default true
  1258.         -annotation ("Disable Fluids: Disable evaluation of all Fluids")
  1259.         -category   ("Modify")
  1260.         -command    ("doEnableNodeItems false fluid")
  1261.         DisableFluids;
  1262. }
  1263.  
  1264. runTimeCommand -default true
  1265.     -annotation ("Disable Global Stitch: Disable evaluation of all Global Stitch nodes")
  1266.     -category   ("Modify")
  1267.     -command    ("doEnableNodeItems false globalstitch")
  1268.     DisableGlobalStitch;
  1269.  
  1270. runTimeCommand -default true
  1271.     -annotation ("Disable Particles: Disable evaluation of all Particles")
  1272.     -category   ("Modify")
  1273.     -command    ("doEnableNodeItems false particle")
  1274.     DisableParticles;
  1275.  
  1276. runTimeCommand -default true
  1277.     -annotation ("Disable Rigid Bodies: Disable evaluation of all " +
  1278.                  "Rigid Bodies")
  1279.     -category   ("Modify")
  1280.     -command    ("doEnableNodeItems false rigidbody")
  1281.     DisableRigidBodies;
  1282.  
  1283. runTimeCommand -default true
  1284.     -annotation ("Disable Snapshots: Disable evaluation of all " +
  1285.                  "Snapshot nodes")
  1286.     -category   ("Modify")
  1287.     -command    ("doEnableNodeItems false snapshot")
  1288.     DisableSnapshots;
  1289.  
  1290. runTimeCommand -default true
  1291.     -annotation ("Make Live: Select a surface")
  1292.     -category   ("Modify")
  1293.     -command    ("makeLive")
  1294.     MakeLive;
  1295.  
  1296. runTimeCommand -default true
  1297.     -annotation ("Center Pivot: Select an object(s)")
  1298.     -category   ("Modify")
  1299.     -command    ("xform -cp")
  1300.     CenterPivot;
  1301.  
  1302. runTimeCommand -default true
  1303.     -annotation ("Prefix Hierarchy Names: Add a prefix to all " +
  1304.                  "hierarchy names")
  1305.     -category   ("Modify")
  1306.     -command    ("prefixHierarchy")
  1307.     PrefixHierarchyNames;
  1308.  
  1309. runTimeCommand -default true
  1310.     -annotation ("Add Attribute")
  1311.     -category   ("Modify")
  1312.     -command    ("dynAddAttrWin( {} )")
  1313.     AddAttribute;
  1314.  
  1315. runTimeCommand -default true
  1316.     -annotation ("Delete Attribute")
  1317.     -category   ("Modify")
  1318.     -command    ("dynDeleteAttrWin( {} )")
  1319.     DeleteAttribute;
  1320.  
  1321. runTimeCommand -default true
  1322.     -annotation ("Rename Attribute")
  1323.     -category   ("Modify")
  1324.     -command    ("dynRenameAttrWin( {} )")
  1325.     RenameAttribute;
  1326.  
  1327. runTimeCommand -default true
  1328.     -annotation ("Script Paint Tool: Paint custom effects defined " +
  1329.                  "in a MEL script on a surface")
  1330.     -category   ("Modify")
  1331.     -command    ("artUserPaintToolScript 4")
  1332.     ScriptPaintTool;
  1333.  
  1334. runTimeCommand -default true
  1335.     -annotation ("Script Paint Tool Options")
  1336.     -category   ("Modify")
  1337.     -command    ("artUserPaintToolScript 3")
  1338.     ScriptPaintToolOptions;
  1339.  
  1340.  
  1341. // General Attribute Paint Tool
  1342. runTimeCommand -default true
  1343.     -annotation ("Attribute Paint Tool: Paint")
  1344.     -category   ("Modify")
  1345.     -command    ("artAttrToolScript 4 \"\"")
  1346.     ArtPaintAttrTool;
  1347.  
  1348. runTimeCommand -default true
  1349.     -annotation ("Attribute Paint Tool Options")
  1350.     -category   ("Modify")
  1351.     -command    ("artAttrToolScript 3 \"\" ")
  1352.     ArtPaintAttrToolOptions;
  1353.  
  1354.  
  1355. //
  1356. //    Create menu.
  1357. //
  1358. // ----------------------------------------------------------------------
  1359.  
  1360. //    Create NURBS primitives.
  1361. //
  1362. runTimeCommand -default true
  1363.     -annotation ("NURBS Sphere: Create a NURBS sphere on the grid")
  1364.     -category   ("Create")
  1365.     -command    ("performNurbsSphere 0")
  1366.     CreateNURBSSphere;
  1367.  
  1368. runTimeCommand -default true
  1369.     -annotation ("NURBS Sphere Options")
  1370.     -category   ("Create")
  1371.     -command    ("performNurbsSphere 1")
  1372.     CreateNURBSSphereOptions;
  1373.  
  1374. runTimeCommand -default true
  1375.     -annotation ("NURBS Cube: Create a NURBS cube on the grid")
  1376.     -category   ("Create")
  1377.     -command    ("performNurbsCube 0")
  1378.     CreateNURBSCube;
  1379.  
  1380. runTimeCommand -default true
  1381.     -annotation ("NURBS Cube Options")
  1382.     -category   ("Create")
  1383.     -command    ("performNurbsCube 1")
  1384.     CreateNURBSCubeOptions;
  1385.  
  1386. runTimeCommand -default true
  1387.     -annotation ("NURBS Cylinder: Create a NURBS cylinder on the grid")
  1388.     -category   ("Create")
  1389.     -command    ("performNurbsCylinder 0")
  1390.     CreateNURBSCylinder;
  1391.  
  1392. runTimeCommand -default true
  1393.     -annotation ("NURBS Cylinder Options")
  1394.     -category   ("Create")
  1395.     -command    ("performNurbsCylinder 1")
  1396.     CreateNURBSCylinderOptions;
  1397.  
  1398. runTimeCommand -default true
  1399.     -annotation ("NURBS Cone: Create a NURBS cone on the grid")
  1400.     -category   ("Create")
  1401.     -command    ("performNurbsCone 0")
  1402.     CreateNURBSCone;
  1403.  
  1404. runTimeCommand -default true
  1405.     -annotation ("NURBS Cone Options")
  1406.     -category   ("Create")
  1407.     -command    ("performNurbsCone 1")
  1408.     CreateNURBSConeOptions;
  1409.  
  1410. runTimeCommand -default true
  1411.     -annotation ("NURBS Plane: Create a NURBS plane on the grid")
  1412.     -category   ("Create")
  1413.     -command    ("performNurbsPlane 0")
  1414.     CreateNURBSPlane;
  1415.  
  1416. runTimeCommand -default true
  1417.     -annotation ("NURBS Plane Options")
  1418.     -category   ("Create")
  1419.     -command    ("performNurbsPlane 1")
  1420.     CreateNURBSPlaneOptions;
  1421.  
  1422. runTimeCommand -default true
  1423.     -annotation ("NURBS Torus: Create a NURBS torus on the grid")
  1424.     -category   ("Create")
  1425.     -command    ("performNurbsTorus 0")
  1426.     CreateNURBSTorus;
  1427.  
  1428. runTimeCommand -default true
  1429.     -annotation ("NURBS Torus Options")
  1430.     -category   ("Create")
  1431.     -command    ("performNurbsTorus 1")
  1432.     CreateNURBSTorusOptions;
  1433.  
  1434. runTimeCommand -default true
  1435.     -annotation ("NURBS Circle: Create a NURBS circle on the grid")
  1436.     -category   ("Create")
  1437.     -command    ("performNurbsCircle 0")
  1438.     CreateNURBSCircle;
  1439.  
  1440. runTimeCommand -default true
  1441.     -annotation ("NURBS Circle Options")
  1442.     -category   ("Create")
  1443.     -command    ("performNurbsCircle 1")
  1444.     CreateNURBSCircleOptions;
  1445.  
  1446. runTimeCommand -default true
  1447.     -annotation ("NURBS Square: Create a NURBS square on the grid")
  1448.     -category   ("Create")
  1449.     -command    ("performNurbsSquare 0")
  1450.     CreateNURBSSquare;
  1451.  
  1452. runTimeCommand -default true
  1453.     -annotation ("NURBS Square Options")
  1454.     -category   ("Create")
  1455.     -command    ("performNurbsSquare 1")
  1456.     CreateNURBSSquareOptions;
  1457.  
  1458. //    Create Polygon primitives.
  1459. //
  1460. runTimeCommand -default true
  1461.     -annotation ("Polygon Sphere: Create a polygonal sphere on the grid")
  1462.     -category   ("Create")
  1463.     -command    ("performPolyPrimitive Sphere 0")
  1464.     CreatePolygonSphere;
  1465.  
  1466. runTimeCommand -default true
  1467.     -annotation ("Polygon Sphere Options")
  1468.     -category   ("Create")
  1469.     -command    ("performPolyPrimitive Sphere 1")
  1470.     CreatePolygonSphereOptions;
  1471.  
  1472. runTimeCommand -default true
  1473.     -annotation ("Polygon Cube: Create a polygonal cube on the grid")
  1474.     -category   ("Create")
  1475.     -command    ("performPolyPrimitive Cube 0")
  1476.     CreatePolygonCube;
  1477.  
  1478. runTimeCommand -default true
  1479.     -annotation ("Polygon Cube Options")
  1480.     -category   ("Create")
  1481.     -command    ("performPolyPrimitive Cube 1")
  1482.     CreatePolygonCubeOptions;
  1483.  
  1484. runTimeCommand -default true
  1485.     -annotation ("Polygon Cylinder: Create a polygonal cylinder on the grid")
  1486.     -category   ("Create")
  1487.     -command    ("performPolyPrimitive Cylinder 0")
  1488.     CreatePolygonCylinder;
  1489.  
  1490. runTimeCommand -default true
  1491.     -annotation ("Polygon Cylinder Options")
  1492.     -category   ("Create")
  1493.     -command    ("performPolyPrimitive Cylinder 1")
  1494.     CreatePolygonCylinderOptions;
  1495.  
  1496. runTimeCommand -default true
  1497.     -annotation ("Polygon Cone: Create a polygonal cone on the grid")
  1498.     -category   ("Create")
  1499.     -command    ("performPolyPrimitive Cone 0")
  1500.     CreatePolygonCone;
  1501.  
  1502. runTimeCommand -default true
  1503.     -annotation ("Polygon Cone Options")
  1504.     -category   ("Create")
  1505.     -command    ("performPolyPrimitive Cone 1")
  1506.     CreatePolygonConeOptions;
  1507.  
  1508. runTimeCommand -default true
  1509.     -annotation ("Polygon Plane: Create a polygonal plane on the grid")
  1510.     -category   ("Create")
  1511.     -command    ("performPolyPrimitive Plane 0")
  1512.     CreatePolygonPlane;
  1513.  
  1514. runTimeCommand -default true
  1515.     -annotation ("Polygon Plane Options")
  1516.     -category   ("Create")
  1517.     -command    ("performPolyPrimitive Plane 1")
  1518.     CreatePolygonPlaneOptions;
  1519.  
  1520. runTimeCommand -default true
  1521.     -annotation ("Polygon Torus: Create a polygonal torus on the grid")
  1522.     -category   ("Create")
  1523.     -command    ("performPolyPrimitive Torus 0")
  1524.     CreatePolygonTorus;
  1525.  
  1526. runTimeCommand -default true
  1527.     -annotation ("Polygon Torus Options")
  1528.     -category   ("Create")
  1529.     -command    ("performPolyPrimitive Torus 1")
  1530.     CreatePolygonTorusOptions;
  1531.  
  1532. //    Create Subdiv primitives.
  1533. //
  1534. runTimeCommand -default true
  1535.     -annotation ("Subdiv Sphere: Create a subdiv sphere on the grid")
  1536.     -category   ("Create")
  1537.     -command    ("createSubdSphere")
  1538.     CreateSubdivSphere;
  1539.  
  1540. runTimeCommand -default true
  1541.     -annotation ("Subdiv Cube: Create a subdiv cube on the grid")
  1542.     -category   ("Create")
  1543.     -command    ("createSubdCube")
  1544.     CreateSubdivCube;
  1545.  
  1546. runTimeCommand -default true
  1547.     -annotation ("Subdiv Cylinder: Create a subdiv cylinder on the grid")
  1548.     -category   ("Create")
  1549.     -command    ("createSubdCylinder")
  1550.     CreateSubdivCylinder;
  1551.  
  1552. runTimeCommand -default true
  1553.     -annotation ("Subdiv Cone: Create a subdiv cone on the grid")
  1554.     -category   ("Create")
  1555.     -command    ("createSubdCone")
  1556.     CreateSubdivCone;
  1557.  
  1558. runTimeCommand -default true
  1559.     -annotation ("Subdiv Plane: Create a subdiv plane on the grid")
  1560.     -category   ("Create")
  1561.     -command    ("createSubdPlane")
  1562.     CreateSubdivPlane;
  1563.  
  1564. runTimeCommand -default true
  1565.     -annotation ("Subdiv Torus: Create a subdiv torus on the grid")
  1566.     -category   ("Create")
  1567.     -command    ("createSubdTorus")
  1568.     CreateSubdivTorus;
  1569.  
  1570. //    Create Volume primitives.
  1571. //
  1572. runTimeCommand -default true
  1573.     -annotation ("Volume Sphere: Create a volume sphere on the grid")
  1574.     -category   ("Create")
  1575.     -command    ("createImplicitVolume sphere")
  1576.     CreateVolumeSphere;
  1577.  
  1578. runTimeCommand -default true
  1579.     -annotation ("Volume Cube: Create a volume cube on the grid")
  1580.     -category   ("Create")
  1581.     -command    ("createImplicitVolume cube")
  1582.     CreateVolumeCube;
  1583.  
  1584. runTimeCommand -default true
  1585.     -annotation ("Volume Cone: Create a volume cone on the grid")
  1586.     -category   ("Create")
  1587.     -command    ("createImplicitVolume cone")
  1588.     CreateVolumeCone;
  1589.  
  1590. //    Create lights.
  1591. //
  1592. runTimeCommand -default true
  1593.     -annotation ("Ambient Light: Create an ambient light " +
  1594.                  "on the grid or live surface")
  1595.     -category   ("Create")
  1596.     -command    ("performAmbientLight(0)")
  1597.     CreateAmbientLight;
  1598.  
  1599. runTimeCommand -default true
  1600.     -annotation ("Ambient Light Options")
  1601.     -category   ("Create")
  1602.     -command    ("performAmbientLight(1)")
  1603.     CreateAmbientLightOptions;
  1604.  
  1605. runTimeCommand -default true
  1606.     -annotation ("Directional Light: Create a directional " +
  1607.                  "light on the grid or live surface")
  1608.     -category   ("Create")
  1609.     -command    ("performDirectionalLight(0)")
  1610.     CreateDirectionalLight;
  1611.  
  1612. runTimeCommand -default true
  1613.     -annotation ("Directional Light Options")
  1614.     -category   ("Create")
  1615.     -command    ("performDirectionalLight(1)")
  1616.     CreateDirectionalLightOptions;
  1617.  
  1618. runTimeCommand -default true
  1619.     -annotation ("Point Light: Create a point light on " +
  1620.                  "the grid or live surface")
  1621.     -category   ("Create")
  1622.     -command    ("performPointLight(0)")
  1623.     CreatePointLight;
  1624.  
  1625. runTimeCommand -default true
  1626.     -annotation ("Point Light Options")
  1627.     -category   ("Create")
  1628.     -command    ("performPointLight(1)")
  1629.     CreatePointLightOptions;
  1630.  
  1631. runTimeCommand -default true
  1632.     -annotation ("Spot Light: Create a spot light on " +
  1633.                  "the grid or live surface")
  1634.     -category   ("Create")
  1635.     -command    ("performSpotLight(0)")
  1636.     CreateSpotLight;
  1637.  
  1638. runTimeCommand -default true
  1639.     -annotation ("Spot Light Options")
  1640.     -category   ("Create")
  1641.     -command    ("performSpotLight(1)")
  1642.     CreateSpotLightOptions;
  1643.  
  1644. runTimeCommand -default true
  1645.     -annotation ("Area Light: Create an area light on " +
  1646.                  "the grid or live surface")
  1647.     -category   ("Create")
  1648.     -command    ("performAreaLight(0)")
  1649.     CreateAreaLight;
  1650.  
  1651. runTimeCommand -default true
  1652.     -annotation ("Area Light Options")
  1653.     -category   ("Create")
  1654.     -command    ("performAreaLight(1)")
  1655.     CreateAreaLightOptions;
  1656.  
  1657. runTimeCommand -default true
  1658.     -annotation ("Volume Light: Create a volume light on " +
  1659.                  "the grid or live surface")
  1660.     -category   ("Create")
  1661.     -command    ("performVolumeLight(0)")
  1662.     CreateVolumeLight;
  1663.  
  1664. runTimeCommand -default true
  1665.     -annotation ("Volume Light Options")
  1666.     -category   ("Create")
  1667.     -command    ("performVolumeLight(1)")
  1668.     CreateVolumeLightOptions;
  1669.  
  1670. //    Create NURBS objects.
  1671. //
  1672. runTimeCommand -default true
  1673.     -annotation ("CV Curve Tool: Create a curve on the grid or " +
  1674.                 "live surface specifying control vertices")
  1675.     -category   ("Create")
  1676.     -command    ("curveCVToolScript 4")
  1677.     CVCurveTool;
  1678.  
  1679. runTimeCommand -default true
  1680.     -annotation ("CV Curve Tool Options")
  1681.     -category   ("Create")
  1682.     -command    ("curveCVToolScript 3")
  1683.     CVCurveToolOptions;
  1684.  
  1685. runTimeCommand -default true
  1686.     -annotation ("EP Curve Tool: Create a curve on the grid or " +
  1687.                 "live surface specifying edit points")
  1688.     -category   ("Create")
  1689.     -command    ("curveEPToolScript 4")
  1690.     EPCurveTool;
  1691.  
  1692. runTimeCommand -default true
  1693.     -annotation ("EP Curve Tool Options")
  1694.     -category   ("Create")
  1695.     -command    ("curveEPToolScript 3")
  1696.     EPCurveToolOptions;
  1697.  
  1698. runTimeCommand -default true
  1699.     -annotation ("Pencil Curve Tool: Create a curve on " +
  1700.                 "the grid or live surface")
  1701.     -category   ("Create")
  1702.     -command    ("curveSketchToolScript 4")
  1703.     PencilCurveTool;
  1704.  
  1705. runTimeCommand -default true
  1706.     -annotation ("Pencil Curve Tool Options")
  1707.     -category   ("Create")
  1708.     -command    ("curveSketchToolScript 3")
  1709.     PencilCurveToolOptions;
  1710.  
  1711. runTimeCommand -default true
  1712.     -annotation ("Two Point Arc Tool: Create a circular arc on the " +
  1713.                 "grid specifying two points")
  1714.     -category   ("Create")
  1715.     -command    ("twoPointArcToolScript 4")
  1716.     TwoPointArcTool;
  1717.  
  1718. runTimeCommand -default true
  1719.     -annotation ("Two Point Arc Options")
  1720.     -category   ("Create")
  1721.     -command    ("twoPointArcToolScript 3")
  1722.     TwoPointArcToolOptions;
  1723.  
  1724. runTimeCommand -default true
  1725.     -annotation ("Three Point Arc Tool: Create a circular arc on the " +
  1726.                 "grid specifying three points")
  1727.     -category   ("Create")
  1728.     -command    ("threePointArcToolScript 4")
  1729.     ThreePointArcTool;
  1730.  
  1731. runTimeCommand -default true
  1732.     -annotation ("Three Point Arc Options")
  1733.     -category   ("Create")
  1734.     -command    ("threePointArcToolScript 3")
  1735.     ThreePointArcToolOptions;
  1736.  
  1737. runTimeCommand -default true
  1738.     -annotation ("Distance Tool: Measure distance between two points")
  1739.     -category   ("Create")
  1740.     -command    ("setToolTo distanceDimContext")
  1741.     DistanceTool;
  1742.  
  1743. runTimeCommand -default true
  1744.     -annotation ("Parameter Tool: Display a curve/surface point's " +
  1745.                 "parameter values")
  1746.     -category   ("Create")
  1747.     -command    ("setToolTo paramDimContext")
  1748.     ParameterTool;
  1749.  
  1750. runTimeCommand -default true
  1751.     -annotation ("Arc Length Tool: Display a curve point's distance " +
  1752.                 "from the start of the curve")
  1753.     -category   ("Create")
  1754.     -command    ("setToolTo arcLenDimContext")
  1755.     ArcLengthTool;
  1756.  
  1757. runTimeCommand -default true
  1758.     -annotation ("Annotation: Add an annotation to the selected object")
  1759.     -category   ("Create")
  1760.     -command    ("annotateNode")
  1761.     CreateAnnotateNode;
  1762.  
  1763. runTimeCommand -default true
  1764.     -annotation ("Text: Create text on the grid")
  1765.     -category   ("Create")
  1766.     -command    ("createPrimitive text")
  1767.     CreateText;
  1768.  
  1769. runTimeCommand -default true
  1770.     -annotation ("Text Options")
  1771.     -category   ("Create")
  1772.     -command    ("performtextCurves 1")
  1773.     CreateTextOptions;
  1774.  
  1775. runTimeCommand -default true
  1776.     -annotation ("Construction Plane: Create a construction plane on " +
  1777.                 "the grid")
  1778.     -category   ("Create")
  1779.     -command    ("performCreateConstructionPlane(0)")
  1780.     CreateConstructionPlane;
  1781.  
  1782. runTimeCommand -default true
  1783.     -annotation ("Construction Plane Options")
  1784.     -category   ("Create")
  1785.     -command    ("performCreateConstructionPlane 1")
  1786.     CreateConstructionPlaneOptions;
  1787.  
  1788. runTimeCommand -default true
  1789.     -annotation ("Locator: Create a locator object on the grid")
  1790.     -category   ("Create")
  1791.     -command    ("createPrimitive nullObject")
  1792.     CreateLocator;
  1793.  
  1794. runTimeCommand -default true
  1795.     -annotation ("Camera: Create a camera on the grid")
  1796.     -category   ("Create")
  1797.     -command    ("performCameraOnly false")
  1798.     CreateCameraOnly;
  1799.  
  1800. runTimeCommand -default true
  1801.     -annotation ("Camera Options")
  1802.     -category   ("Create")
  1803.     -command    ("performCameraOnly true")
  1804.     CreateCameraOnlyOptions;
  1805.  
  1806. runTimeCommand -default true
  1807.     -annotation ("Camera: Create a camera with aiming controls")
  1808.     -category   ("Create")
  1809.     -command    ("performCameraAim false")
  1810.     CreateCameraAim;
  1811.  
  1812. runTimeCommand -default true
  1813.     -annotation ("Camera Options")
  1814.     -category   ("Create")
  1815.     -command    ("performCameraAim true")
  1816.     CreateCameraAimOptions;
  1817.  
  1818. runTimeCommand -default true
  1819.     -annotation ("Camera: Create a camera with aiming and up-vector controls")
  1820.     -category   ("Create")
  1821.     -command    ("performCameraAimUp false")
  1822.     CreateCameraAimUp;
  1823.  
  1824. runTimeCommand -default true
  1825.     -annotation ("Camera Options")
  1826.     -category   ("Create")
  1827.     -command    ("performCameraAimUp true")
  1828.     CreateCameraAimUpOptions;
  1829.  
  1830. //
  1831. //    Display menu.
  1832. //
  1833. // ----------------------------------------------------------------------
  1834.  
  1835. //    Grid and Heads Up Display options.
  1836. //
  1837. runTimeCommand -default true 
  1838.     -annotation ("Grid: Toggle the Grid visibility")
  1839.     -category   ("Display")
  1840.     -command    ("optionVar -intValue showGrid (!`optionVar -query showGrid`); grid -toggle (`optionVar -query showGrid`);")
  1841.     ToggleGrid;
  1842.  
  1843. runTimeCommand -default true 
  1844.     -annotation ("Grid Options")
  1845.     -category   ("Display")
  1846.     -command    ("performGridOptions 1")
  1847.     GridOptions;
  1848.  
  1849. runTimeCommand -default true
  1850.     -annotation ("Object Details: Toggle the display of object details")
  1851.     -category    ("Display")
  1852.     -command    ("setObjectDetailsVisibility(!`optionVar -q objectDetailsVisibility`);")
  1853.     ToggleObjectDetails;
  1854.  
  1855. runTimeCommand -default true
  1856.     -annotation    ("Poly Count: Toggle the display of the component count for visible polygons")
  1857.     -category    ("Display")
  1858.     -command    ("setPolyCountVisibility(!`optionVar -q polyCountVisibility`);")
  1859.     TogglePolyCount;
  1860.  
  1861. runTimeCommand -default true
  1862.     -annotation ("Camera Names: Toggle the display of the camera names")
  1863.     -category    ("Display")
  1864.     -command    ("setCameraNamesVisibility(!`optionVar -q cameraNamesVisibility`);")
  1865.     ToggleCameraNames;
  1866.  
  1867. runTimeCommand -default true
  1868.     -annotation ("Frame Rate: Toggle the display of the frame rate")
  1869.     -category    ("Display")
  1870.     -command    ("setFrameRateVisibility(!`optionVar -q frameRateVisibility`);")
  1871.     ToggleFrameRate;
  1872.  
  1873. runTimeCommand -default true
  1874.     -annotation    ("View Axis: Toggle the visibility of the view axis")
  1875.     -category    ("Display")
  1876.     -command    ("setViewAxisVisibility(!`optionVar -q viewAxisVisibility`);")
  1877.     ToggleViewAxis;
  1878.  
  1879. runTimeCommand -default true 
  1880.     -annotation ("Origin Axis: Toggle the visibility of the origin axis")
  1881.     -category   ("Display")
  1882.     -command    ("toggleAxis -o (!`toggleAxis -q -o`);")
  1883.     ToggleOriginAxis;
  1884.  
  1885. runTimeCommand -default true 
  1886.     -annotation ("Aniamtion Details: Toggle the display of animation details")
  1887.     -category   ("Display")
  1888.     -command    ("setAnimationDetailsVisibility(!`optionVar -q animationDetailsVisibility`);")
  1889.     ToggleAnimationDetails;
  1890.  
  1891. //    UI Elements.
  1892. //
  1893. runTimeCommand -default true 
  1894.     -annotation ("Status Line: Toggle the Status Line on/off")
  1895.     -category   ("Display")
  1896.     -command    ("toggleUIComponentVisibility \"Status Line\"; " +
  1897.                  "updateMainWindowComponentState()")
  1898.     ToggleStatusLine;
  1899.  
  1900. runTimeCommand -default true 
  1901.     -annotation ("Shelf: Toggle the Shelf on/off")
  1902.     -category   ("Display")
  1903.     -command    ("toggleUIComponentVisibility \"Shelf\"; changeToolIcon; " +
  1904.                  "updateMainWindowComponentState()")
  1905.     ToggleShelf;
  1906.  
  1907. runTimeCommand -default true 
  1908.     -annotation ("Time Slider: Toggle the Time Slider on/off")
  1909.     -category   ("Display")
  1910.     -command    ("toggleUIComponentVisibility \"Time Slider\"; " +
  1911.                  "updateMainWindowComponentState()")
  1912.     ToggleTimeSlider;
  1913.  
  1914. runTimeCommand -default true 
  1915.     -annotation ("Range Slider: Toggle the Range Slider on/off")
  1916.     -category   ("Display")
  1917.     -command    ("toggleUIComponentVisibility \"Range Slider\"; " +
  1918.                  "updateMainWindowComponentState()")
  1919.     ToggleRangeSlider;
  1920.  
  1921. runTimeCommand -default true 
  1922.     -annotation ("Command Line: Toggle the Command Line on/off")
  1923.     -category   ("Display")
  1924.     -command    ("toggleUIComponentVisibility \"Command Line\"; " +
  1925.                  "updateMainWindowComponentState()")
  1926.     ToggleCommandLine;
  1927.  
  1928. runTimeCommand -default true 
  1929.     -annotation ("Help Line: Toggle the Help Line on/off")
  1930.     -category   ("Display")
  1931.     -command    ("toggleUIComponentVisibility \"Help Line\"; " +
  1932.                  "updateMainWindowComponentState()")
  1933.     ToggleHelpLine;
  1934.  
  1935. runTimeCommand -default true 
  1936.     -annotation ("Toolbox: Toggle the Toolbox on/off")
  1937.     -category   ("Display")
  1938.     -command    ("toggleUIComponentVisibility \"Tool Box\"; " +
  1939.                  "updateMainWindowComponentState()")
  1940.     ToggleToolbox;
  1941.  
  1942. runTimeCommand -default true 
  1943.     -annotation ("Attribute Editor: Toggle the Attribute Editor on/off")
  1944.     -category   ("Display")
  1945.     -command    ("toggleUIComponentVisibility \"Attribute Editor\"; " +
  1946.                  "updateMainWindowComponentState()")
  1947.     ToggleAttributeEditor;
  1948.  
  1949. runTimeCommand -default true 
  1950.     -annotation ("Tool Settings: Toggle the Tool Settings on/off")
  1951.     -category   ("Display")
  1952.     -command    ("if (`isUIComponentVisible(\"Tool Settings\")`) {\r\n\ttoggleUIComponentVisibility(\"Tool Settings\");\r\n} else {\r\n\ttoolPropertyWindow -inMainWindow true;\r\n}\r\n; " +
  1953.                  "updateMainWindowComponentState()")
  1954.     ToggleToolSettings;
  1955.  
  1956. runTimeCommand -default true 
  1957.     -annotation ("Channel Box / Layer Editor: Toggle the Channel Box / Layer Editor on/off")
  1958.     -category   ("Display")
  1959.     -command    ("if (`isUIComponentVisible(\"Channel Box / Layer Editor\")`) {\r\n\ttoggleUIComponentVisibility(\"Channel Box / Layer Editor\");\r\n} else {\r\n\tshowChannelsLayers(\"\");\r\n}\r\n; " +
  1960.                  "updateMainWindowComponentState()")
  1961.     ToggleChannelsLayers;
  1962.  
  1963. runTimeCommand -default true 
  1964.     -annotation ("Channel Box: Toggle the Channel Box on/off")
  1965.     -category   ("Display")
  1966.     -command    ("if (`isUIComponentVisible(\"Channel Box / Layer Editor\")`) {\r\n\ttoggleUIComponentVisibility(\"Channel Box / Layer Editor\");\r\n} else {\r\n\tshowChannelsLayers(\"Channel Box\");\r\n}\r\n; " +
  1967.                  "updateMainWindowComponentState()")
  1968.     ToggleChannelBox;
  1969.  
  1970. runTimeCommand -default true 
  1971.     -annotation ("Layer Editor: Toggle the Layer Editor on/off")
  1972.     -category   ("Display")
  1973.     -command    ("if (`isUIComponentVisible(\"Channel Box / Layer Editor\")`) {\r\n\ttoggleUIComponentVisibility(\"Channel Box / Layer Editor\");\r\n} else {\r\n\tshowChannelsLayers(\"Layer Editor\");\r\n}\r\n; " +
  1974.                  "updateMainWindowComponentState()")
  1975.     ToggleLayerBar;
  1976.  
  1977. runTimeCommand -default true 
  1978.     -annotation ("Hide UI Elements: Show only the viewing panes")
  1979.     -category   ("Display")
  1980.     -command    ("setAllMainWindowComponentsVisible 0")
  1981.     HideUIElements;
  1982.  
  1983. runTimeCommand -default true 
  1984.     -annotation ("Show UI Elements: Show all the UI Elements")
  1985.     -category   ("Display")
  1986.     -command    ("setAllMainWindowComponentsVisible 1")
  1987.     ShowUIElements;
  1988.  
  1989. runTimeCommand -default true 
  1990.     -annotation ("Restore UI Elements: Return to state before Hide/Show " +
  1991.                  "UI Elements")
  1992.     -category   ("Display")
  1993.     -command    ("restoreMainWindowComponents")
  1994.     RestoreUIElements;
  1995.  
  1996. //    Hide.
  1997. //
  1998. runTimeCommand -default true 
  1999.     -annotation ("Hide Selection: Hide the selected object(s)")
  2000.     -category   ("Display")
  2001.     -command    ("hideKeepSelection `ls -sl`")
  2002.     HideSelectedObjects;
  2003.  
  2004. runTimeCommand -default true 
  2005.     -annotation ("Hide Unselected Objects: Hide all objects that are " +
  2006.                  "not selected")
  2007.     -category   ("Display")
  2008.     -command    ("hideKeepSelection `listUnselected`")
  2009.     HideUnselectedObjects;
  2010.  
  2011. runTimeCommand -default true 
  2012.     -annotation ("Hide Unselected CVs: Hide all CVs on the surface " +
  2013.                  "that are not selected")
  2014.     -category   ("Display")
  2015.     -command    ("selectiveCvsDisplay 1")
  2016.     HideUnselectedCVs;
  2017.  
  2018. runTimeCommand -default true 
  2019.     -annotation ("Hide All: Hide all objects")
  2020.     -category   ("Display")
  2021.     -command    ("hideKeepSelection `ls -dag`")
  2022.     HideAll;
  2023.  
  2024. runTimeCommand -default true 
  2025.     -annotation ("Hide All Geometry")
  2026.     -category   ("Display")
  2027.     -command    ("hideShow -geometry -hide")
  2028.     HideGeometry;
  2029.  
  2030. runTimeCommand -default true 
  2031.     -annotation ("Hide All NURBS Surfaces")
  2032.     -category   ("Display")
  2033.     -command    ("hideShow -nurbsSurfaces -hide")
  2034.     HideNURBSSurfaces;
  2035.  
  2036. runTimeCommand -default true 
  2037.     -annotation ("Hide All NURBS Curves")
  2038.     -category   ("Display")
  2039.     -command    ("hideShow -nurbsCurves -hide")
  2040.     HideNURBSCurves;
  2041.  
  2042. runTimeCommand -default true 
  2043.     -annotation ("Hide All Polygon Surfaces")
  2044.     -category   ("Display")
  2045.     -command    ("hideShow -polySurfaces -hide")
  2046.     HidePolygonSurfaces;
  2047.  
  2048. runTimeCommand -default true 
  2049.     -annotation ("Hide All Deforming Geometry")
  2050.     -category   ("Display")
  2051.     -command    ("hideShowDeformingGeom hide")
  2052.     HideDeformingGeometry;
  2053.  
  2054. runTimeCommand -default true 
  2055.     -annotation ("Hide All Subdiv Surfaces")
  2056.     -category   ("Display")
  2057.     -command    ("hideShow -subdiv -hide")
  2058.     HideSubdivSurfaces;
  2059.  
  2060. runTimeCommand -default true 
  2061.     -annotation ("Hide All Strokes")
  2062.     -category   ("Display")
  2063.     -command    ("hideShow -strokes -hide")
  2064.     HideStrokes;
  2065.  
  2066. runTimeCommand -default true 
  2067.     -annotation ("Hide All Stroke Path Curves")
  2068.     -category   ("Display")
  2069.     -command    ("hideShow -strokeCurves -hide")
  2070.     HideStrokePathCurves;
  2071.  
  2072. runTimeCommand -default true 
  2073.     -annotation ("Hide All Stroke Control Curves")
  2074.     -category   ("Display")
  2075.     -command    ("hideShow -strokeControlCurves -hide")
  2076.     HideStrokeControlCurves;
  2077.  
  2078. runTimeCommand -default true 
  2079.     -annotation ("Hide All Kinematics")
  2080.     -category   ("Display")
  2081.     -command    ("hideShow -kinematics -hide")
  2082.     HideKinematics;
  2083.  
  2084. runTimeCommand -default true 
  2085.     -annotation ("Hide All Joints")
  2086.     -category   ("Display")
  2087.     -command    ("hideShow -joints -hide")
  2088.     HideJoints;
  2089.  
  2090. runTimeCommand -default true 
  2091.     -annotation ("Hide All IK Handles")
  2092.     -category   ("Display")
  2093.     -command    ("hideShow -ikHandles -hide")
  2094.     HideIKHandles;
  2095.  
  2096. runTimeCommand -default true 
  2097.     -annotation ("Hide All Deformers")
  2098.     -category   ("Display")
  2099.     -command    ("hideShow -deformers -hide")
  2100.     HideDeformers;
  2101.  
  2102. runTimeCommand -default true 
  2103.     -annotation ("Hide All Lattices")
  2104.     -category   ("Display")
  2105.     -command    ("hideShow -lattices -hide")
  2106.     HideLattices;
  2107.  
  2108. runTimeCommand -default true 
  2109.     -annotation ("Hide All Sculpt Objects")
  2110.     -category   ("Display")
  2111.     -command    ("hideShow -sculptObjects -hide")
  2112.     HideSculptObjects;
  2113.  
  2114. runTimeCommand -default true 
  2115.     -annotation ("Hide All Clusters")
  2116.     -category   ("Display")
  2117.     -command    ("hideShow -clusters -hide")
  2118.     HideClusters;
  2119.  
  2120. runTimeCommand -default true 
  2121.     -annotation ("Hide All Wrap Influences")
  2122.     -category   ("Display")
  2123.     -command    ("hideShow -wraps -hide")
  2124.     HideWrapInfluences;
  2125.  
  2126. runTimeCommand -default true 
  2127.     -annotation ("Hide All Smooth Skin Influences")
  2128.     -category   ("Display")
  2129.     -command    ("hideShow -skinClusters -hide")
  2130.     HideSmoothSkinInfluences;
  2131.  
  2132. runTimeCommand -default true 
  2133.     -annotation ("Hide All Nonlinears")
  2134.     -category   ("Display")
  2135.     -command    ("hideShow -nonlinears -hide")
  2136.     HideNonlinears;
  2137.  
  2138. if( !`about -mac` ) {
  2139.     runTimeCommand -default true
  2140.         -annotation ("Hide All Fluids")
  2141.         -category   ("Display")
  2142.         -command    ("hideShow -fluids -hide")
  2143.         HideFluids;
  2144. }
  2145.  
  2146. //
  2147. //    Cloth.
  2148. //
  2149. runTimeCommand -default true 
  2150.     -annotation ("Hide All Cloth")
  2151.     -category   ("Display")
  2152.     -command    ("setPatternVisible 0")
  2153.     HideCloth;
  2154.  
  2155. runTimeCommand -default true 
  2156.     -annotation ("Hide Cloth Panel Curves")
  2157.     -category   ("Display")
  2158.     -command    ("setPanelCurvesVisible 0")
  2159.     HideClothPanelCurves;
  2160.  
  2161. runTimeCommand -default true 
  2162.     -annotation ("Hide Cloth Panels")
  2163.     -category   ("Display")
  2164.     -command    ("setClothObjectVisible cpPanel 0")
  2165.     HideClothPanels;
  2166.  
  2167. runTimeCommand -default true 
  2168.     -annotation ("Hide Cloth Seams")
  2169.     -category   ("Display")
  2170.     -command    ("setClothObjectVisible cpSeam 0")
  2171.     HideClothSeams;
  2172.  
  2173. runTimeCommand -default true 
  2174.     -annotation ("Hide All Lights")
  2175.     -category   ("Display")
  2176.     -command    ("hideShow -lights -hide")
  2177.     HideLights;
  2178.  
  2179. runTimeCommand -default true 
  2180.     -annotation ("Hide All Cameras")
  2181.     -category   ("Display")
  2182.     -command    ("hideShow -cameras -hide")
  2183.     HideCameras;
  2184.  
  2185. runTimeCommand -default true 
  2186.     -annotation ("Hide All Texture Placements")
  2187.     -category   ("Display")
  2188.     -command    ("hideShow -place3dTexture -hide")
  2189.     HideTexturePlacements;
  2190.  
  2191. runTimeCommand -default true 
  2192.     -annotation ("Hide All Planes")
  2193.     -category   ("Display")
  2194.     -command    ("hideShow -planes -hide")
  2195.     HidePlanes;
  2196.  
  2197. runTimeCommand -default true 
  2198.     -annotation ("Hide All Markers")
  2199.     -category   ("Display")
  2200.     -command    ("hideShow -posMarker -hide")
  2201.     HideMarkers;
  2202.  
  2203. runTimeCommand -default true 
  2204.     -annotation ("Hide All Light Manipulators")
  2205.     -category   ("Display")
  2206.     -command    ("renderManip -lt false false false; " +
  2207.                  "renderManip -slt false false false false false false false")
  2208.     HideLightManipulators;
  2209.  
  2210. runTimeCommand -default true 
  2211.     -annotation ("Hide All Camera Manipulators")
  2212.     -category   ("Display")
  2213.     -command    ("renderManip -camera false false false false false")
  2214.     HideCameraManipulators;
  2215.  
  2216. //    Show.
  2217. //
  2218. runTimeCommand -default true 
  2219.     -annotation ("Show Selection: Show all selected objects")
  2220.     -category   ("Display")
  2221.     -command    ("evalEcho \"showHidden -a\"")
  2222.     ShowSelectedObjects;
  2223.  
  2224. runTimeCommand -default true 
  2225.     -annotation ("Show Last Hidden: Show the last hidden item")
  2226.     -category   ("Display")
  2227.     -command    ("showLastHidden")
  2228.     ShowLastHidden;
  2229.  
  2230. runTimeCommand -default true 
  2231.     -annotation ("Show All Surface CVs: Show all CVs for the surface " +
  2232.                  "with the selected CV(s)")
  2233.     -category   ("Display")
  2234.     -command    ("selectiveCvsDisplay 0")
  2235.     ShowSurfaceCVs;
  2236.  
  2237. runTimeCommand -default true 
  2238.     -annotation ("Show All: Show all objects")
  2239.     -category   ("Display")
  2240.     -command    ("evalEcho \"showHidden -all\"")
  2241.     ShowAll;
  2242.  
  2243. runTimeCommand -default true 
  2244.     -annotation ("Show All Geometry")
  2245.     -category   ("Display")
  2246.     -command    ("hideShow -geometry -show")
  2247.     ShowGeometry;
  2248.  
  2249. runTimeCommand -default true 
  2250.     -annotation ("Show All NURBS Surfaces")
  2251.     -category   ("Display")
  2252.     -command    ("hideShow -nurbsSurfaces -show")
  2253.     ShowNURBSSurfaces;
  2254.  
  2255. runTimeCommand -default true 
  2256.     -annotation ("Show All NURBS Curves")
  2257.     -category   ("Display")
  2258.     -command    ("hideShow -nurbsCurves -show")
  2259.     ShowNURBSCurves;
  2260.  
  2261. runTimeCommand -default true 
  2262.     -annotation ("Show All Polygon Surfaces")
  2263.     -category   ("Display")
  2264.     -command    ("hideShow -polySurfaces -show")
  2265.     ShowPolygonSurfaces;
  2266.  
  2267. runTimeCommand -default true 
  2268.     -annotation ("Show All Deforming Geometry")
  2269.     -category   ("Display")
  2270.     -command    ("hideShowDeformingGeom show")
  2271.     ShowDeformingGeometry;
  2272.  
  2273. runTimeCommand -default true 
  2274.     -annotation ("Show All Subdiv Surfaces")
  2275.     -category   ("Display")
  2276.     -command    ("hideShow -subdiv -show")
  2277.     ShowSubdivSurfaces;
  2278.  
  2279. runTimeCommand -default true 
  2280.     -annotation ("Show All Strokes")
  2281.     -category   ("Display")
  2282.     -command    ("hideShow -strokes -show")
  2283.     ShowStrokes;
  2284.  
  2285. runTimeCommand -default true 
  2286.     -annotation ("Show All Stroke Path Curves")
  2287.     -category   ("Display")
  2288.     -command    ("hideShow -strokeCurves -show")
  2289.     ShowStrokePathCurves;
  2290.  
  2291. runTimeCommand -default true 
  2292.     -annotation ("Show All Stroke Control Curves")
  2293.     -category   ("Display")
  2294.     -command    ("hideShow -strokeControlCurves -show")
  2295.     ShowStrokeControlCurves;
  2296.  
  2297. runTimeCommand -default true 
  2298.     -annotation ("Show All Kinematics")
  2299.     -category   ("Display")
  2300.     -command    ("hideShow -kinematics -show")
  2301.     ShowKinematics;
  2302.  
  2303. runTimeCommand -default true 
  2304.     -annotation ("Show All Joints")
  2305.     -category   ("Display")
  2306.     -command    ("hideShow -joints -show")
  2307.     ShowJoints;
  2308.  
  2309. runTimeCommand -default true 
  2310.     -annotation ("Show All IK Handles")
  2311.     -category   ("Display")
  2312.     -command    ("hideShow -ikHandles -show")
  2313.     ShowIKHandles;
  2314.  
  2315. runTimeCommand -default true 
  2316.     -annotation ("Show All Deformers")
  2317.     -category   ("Display")
  2318.     -command    ("hideShow -deformers -show")
  2319.     ShowDeformers;
  2320.  
  2321. runTimeCommand -default true 
  2322.     -annotation ("Show All Lattices")
  2323.     -category   ("Display")
  2324.     -command    ("hideShow -lattices -show")
  2325.     ShowLattices;
  2326.  
  2327. runTimeCommand -default true 
  2328.     -annotation ("Show All Sculpt Objects")
  2329.     -category   ("Display")
  2330.     -command    ("hideShow -sculptObjects -show")
  2331.     ShowSculptObjects;
  2332.  
  2333. runTimeCommand -default true 
  2334.     -annotation ("Show All Clusters")
  2335.     -category   ("Display")
  2336.     -command    ("hideShow -clusters -show")
  2337.     ShowClusters;
  2338.  
  2339. runTimeCommand -default true 
  2340.     -annotation ("Show All Wrap Influences")
  2341.     -category   ("Display")
  2342.     -command    ("hideShow -wraps -show")
  2343.     ShowWrapInfluences;
  2344.  
  2345. runTimeCommand -default true 
  2346.     -annotation ("Show All Smooth Skin Influences")
  2347.     -category   ("Display")
  2348.     -command    ("hideShow -skinClusters -show")
  2349.     ShowSmoothSkinInfluences;
  2350.  
  2351. runTimeCommand -default true 
  2352.     -annotation ("Show All Nonlinears")
  2353.     -category   ("Display")
  2354.     -command    ("hideShow -nonlinears -show")
  2355.     ShowNonlinears;
  2356.  
  2357. if( !`about -mac` ) {
  2358.     runTimeCommand -default true
  2359.         -annotation ("Show All Fluids")
  2360.         -category   ("Display")
  2361.         -command    ("hideShow -fluids -show")
  2362.         ShowFluids;
  2363. }
  2364.  
  2365. //
  2366. //    Cloth.
  2367. //
  2368. runTimeCommand -default true 
  2369.     -annotation ("Show All Cloth")
  2370.     -category   ("Display")
  2371.     -command    ("setPatternVisible 1")
  2372.     ShowCloth;
  2373.  
  2374. runTimeCommand -default true 
  2375.     -annotation ("Show Cloth Panel Curves")
  2376.     -category   ("Display")
  2377.     -command    ("setPanelCurvesVisible 1")
  2378.     ShowClothPanelCurves;
  2379.  
  2380. runTimeCommand -default true 
  2381.     -annotation ("Show Cloth Panels")
  2382.     -category   ("Display")
  2383.     -command    ("setClothObjectVisible cpPanel 1")
  2384.     ShowClothPanels;
  2385.  
  2386. runTimeCommand -default true 
  2387.     -annotation ("Show Cloth Seams")
  2388.     -category   ("Display")
  2389.     -command    ("setClothObjectVisible cpSeam 1")
  2390.     ShowClothSeams;
  2391.  
  2392. runTimeCommand -default true 
  2393.     -annotation ("Show All Lights")
  2394.     -category   ("Display")
  2395.     -command    ("showHidden -a `ls -lights`")
  2396.     ShowLights;
  2397.  
  2398. runTimeCommand -default true 
  2399.     -annotation ("Show All Cameras")
  2400.     -category   ("Display")
  2401.     -command    ("showHidden -a `ls -ap -cameras`")
  2402.     ShowCameras;
  2403.  
  2404. runTimeCommand -default true 
  2405.     -annotation ("Show All Texture Placements")
  2406.     -category   ("Display")
  2407.     -command    ("showHidden -a `ls -type place3dTexture`")
  2408.     ShowTexturePlacements;
  2409.  
  2410. runTimeCommand -default true 
  2411.     -annotation ("Show All Planes")
  2412.     -category   ("Display")
  2413.     -command    ("showHidden -a `ls -planes`")
  2414.     ShowPlanes;
  2415.  
  2416. runTimeCommand -default true 
  2417.     -annotation ("Show All Markers")
  2418.     -category   ("Display")
  2419.     -command    ("hideShow -posMarker -show")
  2420.     ShowMarkers;
  2421.  
  2422. runTimeCommand -default true 
  2423.     -annotation ("Show All Light Manipulators")
  2424.     -category   ("Display")
  2425.     -command    ("renderManip -lt true true true; renderManip -slt true true true true true true true")
  2426.     ShowLightManipulators;
  2427.  
  2428. runTimeCommand -default true 
  2429.     -annotation ("Show All Camera Manipulators")
  2430.     -category   ("Display")
  2431.     -command    ("renderManip -cam true true true true true")
  2432.     ShowCameraManipulators;
  2433.  
  2434. //    Object Display.
  2435. //
  2436. runTimeCommand -default true 
  2437.     -annotation ("Template: Make objects templated")
  2438.     -category   ("Display")
  2439.     -command    ("toggle -state on -template")
  2440.     TemplateObject;
  2441.  
  2442. runTimeCommand -default true 
  2443.     -annotation ("Untemplate: Make objects untemplated")
  2444.     -category   ("Display")
  2445.     -command    ("toggle -state off -template")
  2446.     UntemplateObject;
  2447.  
  2448. runTimeCommand -default true 
  2449.     -annotation ("Ghost: Display ghosts for objects")
  2450.     -category   ("Display")
  2451.     -command    ("doGhost 1 {\"1\"}")
  2452.     GhostObject;
  2453.  
  2454. runTimeCommand -default true 
  2455.     -annotation ("No Ghost: Do not display ghosts for objects")
  2456.     -category   ("Display")
  2457.     -command    ("doGhost 1 {\"0\"}")
  2458.     UnghostObject;
  2459.  
  2460. runTimeCommand -default true 
  2461.     -annotation ("Bounding Box: Display objects as a box")
  2462.     -category   ("Display")
  2463.     -command    ("boundingBoxDisplayCtrl 1 \"\"")
  2464.     ShowBoundingBox;
  2465.  
  2466. runTimeCommand -default true 
  2467.     -annotation ("No Bounding Box: Full display of objects")
  2468.     -category   ("Display")
  2469.     -command    ("boundingBoxDisplayCtrl 0 \"\"")
  2470.     HideBoundingBox;
  2471.  
  2472. runTimeCommand -default true 
  2473.     -annotation ("Geometry: Display object geometry")
  2474.     -category   ("Display")
  2475.     -command    ("toggle -state on -geometry")
  2476.     ShowObjectGeometry;
  2477.  
  2478. runTimeCommand -default true 
  2479.     -annotation ("No Geometry: Do not display object geometry")
  2480.     -category   ("Display")
  2481.     -command    ("toggle -state off -geometry")
  2482.     HideObjectGeometry;
  2483.  
  2484. //    Component Display.
  2485. //
  2486. runTimeCommand -default true 
  2487.     -annotation ("Backfaces: Toggle geometry backface visibility")
  2488.     -category   ("Display")
  2489.     -command    ("toggleSurfaceBackfaceCulling()")
  2490.     ToggleBackfaceGeometry;
  2491.  
  2492. runTimeCommand -default true 
  2493.     -annotation ("Lattice Points: Toggle lattice point visibility")
  2494.     -category   ("Display")
  2495.     -command    ("toggle -latticePoint")
  2496.     ToggleLatticePoints;
  2497.  
  2498. runTimeCommand -default true 
  2499.     -annotation ("Lattice Shape: Toggle lattice shape visibility")
  2500.     -category   ("Display")
  2501.     -command    ("toggle -latticeShape")
  2502.     ToggleLatticeShape;
  2503.  
  2504. runTimeCommand -default true 
  2505.     -annotation ("Local Rotation Axes: Toggle local rotation axis visibility")
  2506.     -category   ("Display")
  2507.     -command    ("toggle -localAxis")
  2508.     ToggleLocalRotationAxes;
  2509.  
  2510. runTimeCommand -default true 
  2511.     -annotation ("Rotate Pivots: Toggle rotation pivot visibility")
  2512.     -category   ("Display")
  2513.     -command    ("toggle -rotatePivot")
  2514.     ToggleRotationPivots;
  2515.  
  2516. runTimeCommand -default true 
  2517.     -annotation ("Scale Pivots: Toggle scale pivot visibility")
  2518.     -category   ("Display")
  2519.     -command    ("toggle -scalePivot")
  2520.     ToggleScalePivots;
  2521.  
  2522. runTimeCommand -default true 
  2523.     -annotation ("Selection Handles: Toggle selection handle visibility")
  2524.     -category   ("Display")
  2525.     -command    ("toggle -selectHandle")
  2526.     ToggleSelectionHandles;
  2527.  
  2528. //    NURBS Components.
  2529. //
  2530. runTimeCommand -default true 
  2531.     -annotation ("CVs: Toggle CV visibility")
  2532.     -category   ("Display")
  2533.     -command    ("toggle -controlVertex")
  2534.     ToggleCVs;
  2535.  
  2536. runTimeCommand -default true 
  2537.     -annotation ("Edit Points: Toggle edit point visibility")
  2538.     -category   ("Display")
  2539.     -command    ("toggle -editPoint")
  2540.     ToggleEditPoints;
  2541.  
  2542. runTimeCommand -default true 
  2543.     -annotation ("Hulls: Toggle hull visibility")
  2544.     -category   ("Display")
  2545.     -command    ("toggle -hull")
  2546.     ToggleHulls;
  2547.  
  2548. runTimeCommand -default true 
  2549.     -annotation ("Normals: Toggle visible normals in shaded mode")
  2550.     -category   ("Display")
  2551.     -command    ("toggle -normal")
  2552.     ToggleNormals;
  2553.  
  2554. runTimeCommand -default true 
  2555.     -annotation ("Patch Centers: Toggle face center visibility")
  2556.     -category   ("Display")
  2557.     -command    ("toggle -surfaceFace")
  2558.     ToggleSurfaceFaceCenters;
  2559.  
  2560. runTimeCommand -default true 
  2561.     -annotation ("Surface Origins: Toggle origin visibility")
  2562.     -category   ("Display")
  2563.     -command    ("toggle -origin")
  2564.     ToggleSurfaceOrigin;
  2565.  
  2566. runTimeCommand -default true 
  2567.     -annotation ("Custom: Set the visibility options of " +
  2568.                  "NURBS components for selected object(s)")
  2569.     -category   ("Display")
  2570.     -command    ("performDisplayControl 0")
  2571.     ToggleCustomNURBSComponents;
  2572.  
  2573. runTimeCommand -default true 
  2574.     -annotation ("Custom NURBS Components Options")
  2575.     -category   ("Display")
  2576.     -command    ("performDisplayControl 1")
  2577.     CustomNURBSComponentsOptions;
  2578.  
  2579. //    NURBS Smoothness.
  2580. //
  2581. runTimeCommand -default true 
  2582.     -annotation ("Display Hull: Set the display smoothness to hull")
  2583.     -category   ("Display")
  2584.     -command    ("performDisplaySmoothnessHull 0")
  2585.     NURBSSmoothnessHull;
  2586.  
  2587. runTimeCommand -default true 
  2588.     -annotation ("Display Hull Options")
  2589.     -category   ("Display")
  2590.     -command    ("performDisplaySmoothnessHull 1")
  2591.     NURBSSmoothnessHullOptions;
  2592.  
  2593. runTimeCommand -default true 
  2594.     -annotation ("Display Rough: Set the display smoothness to rough")
  2595.     -category   ("Display")
  2596.     -command    ("performDisplaySmoothnessRough 0")
  2597.     NURBSSmoothnessRough;
  2598.  
  2599. runTimeCommand -default true 
  2600.     -annotation ("Display Rough Options")
  2601.     -category   ("Display")
  2602.     -command    ("performDisplaySmoothnessRough 1")
  2603.     NURBSSmoothnessRoughOptions;
  2604.  
  2605. runTimeCommand -default true 
  2606.     -annotation ("Display Medium: Set the display smoothness to medium")
  2607.     -category   ("Display")
  2608.     -command    ("performDisplaySmoothnessMedium 0")
  2609.     NURBSSmoothnessMedium;
  2610.  
  2611. runTimeCommand -default true 
  2612.     -annotation ("Display Medium Options")
  2613.     -category   ("Display")
  2614.     -command    ("performDisplaySmoothnessMedium 1")
  2615.     NURBSSmoothnessMediumOptions;
  2616.  
  2617. runTimeCommand -default true 
  2618.     -annotation ("Display Fine: Set the display smoothness to fine")
  2619.     -category   ("Display")
  2620.     -command    ("performDisplaySmoothnessFine 0")
  2621.     NURBSSmoothnessFine;
  2622.  
  2623. runTimeCommand -default true 
  2624.     -annotation ("Display Fine Options")
  2625.     -category   ("Display")
  2626.     -command    ("performDisplaySmoothnessFine 1")
  2627.     NURBSSmoothnessFineOptions;
  2628.  
  2629. runTimeCommand -default true 
  2630.     -annotation ("Display Custom: Define and set a customized " +
  2631.                  "display smoothness")
  2632.     -category   ("Display")
  2633.     -command    ("performDisplaySmoothnessCustom 0")
  2634.     CustomNURBSSmoothness;
  2635.  
  2636. runTimeCommand -default true 
  2637.     -annotation ("Display Custom NURBS Smoothness Options")
  2638.     -category   ("Display")
  2639.     -command    ("performDisplaySmoothnessCustom 1")
  2640.     CustomNURBSSmoothnessOptions;
  2641.  
  2642. //    Polygon Components.
  2643. //
  2644. runTimeCommand -default true 
  2645.     -annotation ("Vertices: Toggle the poly vertex visibility")
  2646.     -category   ("Display")
  2647.     -command    ("polyOptions -r -dv true")
  2648.     ToggleVertices;
  2649.  
  2650. runTimeCommand -default true 
  2651.     -annotation ("Border Edges: Toggle the poly border visibility")
  2652.     -category   ("Display")
  2653.     -command    ("polyOptions -r -db true")
  2654.     ToggleBorderEdges;
  2655.  
  2656. runTimeCommand -default true 
  2657.     -annotation ("Soft Edges: Toggle the soft edge visibility")
  2658.     -category   ("Display")
  2659.     -command    ("int $cond[1]=`polyOptions -q -ae`; " +
  2660.                  "if ($cond[0]) polyOptions -se; else polyOptions -ae;")
  2661.     ToggleSoftEdges;
  2662.  
  2663. runTimeCommand -default true 
  2664.     -annotation ("Face Centers: Toggle the face center visibility")
  2665.     -category   ("Display")
  2666.     -command    ("polyOptions -r -dc true")
  2667.     TogglePolygonFaceCenters;
  2668.  
  2669. runTimeCommand -default true 
  2670.     -annotation ("UVs: Toggle the UV visibility")
  2671.     -category   ("Display")
  2672.     -command    ("polyOptions -r -duv true")
  2673.     ToggleUVs;
  2674.  
  2675. runTimeCommand -default true 
  2676.     -annotation ("Normals: Toggle the face normal visibility")
  2677.     -category   ("Display")
  2678.     -command    ("polyOptions -r -dn true -facet")
  2679.     ToggleFaceNormals;
  2680.  
  2681. runTimeCommand -default true 
  2682.     -annotation ("Long Normals: Set the poly normal size to Long")
  2683.     -category   ("Display")
  2684.     -command    ("setNormalsSize 1.0")
  2685.     LongPolygonNormals;
  2686.  
  2687. runTimeCommand -default true 
  2688.     -annotation ("Medium Normals: Set the poly normal size to Medium")
  2689.     -category   ("Display")
  2690.     -command    ("setNormalsSize .4")
  2691.     MediumPolygonNormals;
  2692.  
  2693. runTimeCommand -default true 
  2694.     -annotation ("Short Normals: Set the poly normal size to Short")
  2695.     -category   ("Display")
  2696.     -command    ("setNormalsSize .16")
  2697.     ShortPolygonNormals;
  2698.  
  2699. //    Custom Polygon Display.
  2700. //
  2701. runTimeCommand -default true 
  2702.     -annotation ("Custom Polygon Display: Customize the Polygon " +
  2703.                  "Display Options")
  2704.     -category   ("Display")
  2705.     -command    ("polysDisplaySetup 0")
  2706.     CustomPolygonDisplay;
  2707.  
  2708. runTimeCommand -default true 
  2709.     -annotation ("Custom Polygon Display Options")
  2710.     -category   ("Display")
  2711.     -command    ("polysDisplaySetup 1")
  2712.     CustomPolygonDisplayOptions;
  2713.  
  2714. //    Subdiv Surface Components.
  2715. //
  2716. runTimeCommand -default true 
  2717.     -annotation ("Vertices: Toggle visibility of vertices")
  2718.     -category   ("Display")
  2719.     -command    ("subdivToggle 1")
  2720.     ToggleMeshPoints;
  2721.  
  2722. runTimeCommand -default true 
  2723.     -annotation ("Edges: Toggle visibility of edges")
  2724.     -category   ("Display")
  2725.     -command    ("subdivToggle 2")
  2726.     ToggleMeshEdges;
  2727.  
  2728. runTimeCommand -default true 
  2729.     -annotation ("Faces: Toggle visibility of faces")
  2730.     -category   ("Display")
  2731.     -command    ("subdivToggle 3")
  2732.     ToggleMeshFaces;
  2733.  
  2734. runTimeCommand -default true 
  2735.     -annotation ("Maps: Toggle visibility of UV map components")
  2736.     -category   ("Display")
  2737.     -command    ("subdivToggle 4")
  2738.     ToggleMeshMaps;
  2739.  
  2740. runTimeCommand -default true 
  2741.     -annotation ("UV Borders: Toggle visibility of UV texture borders")
  2742.     -category   ("Display")
  2743.     -command    ("subdivToggle 5")
  2744.     ToggleMeshUVBorders;
  2745.  
  2746. //    Subdiv Surface Smoothness.
  2747. //
  2748. runTimeCommand -default true 
  2749.     -annotation ("Display Hull: Set the display smoothness to hull")
  2750.     -category   ("Display")
  2751.     -command    ("performSubdivDisplaySmoothnessHull 0")
  2752.     SubdivSmoothnessHull;
  2753.  
  2754. runTimeCommand -default true 
  2755.     -annotation ("Display Hull Options")
  2756.     -category   ("Display")
  2757.     -command    ("performSubdivDisplaySmoothnessHull 1")
  2758.     SubdivSmoothnessHullOptions;
  2759.  
  2760. runTimeCommand -default true 
  2761.     -annotation ("Rough:  Set the display smoothness to rough")
  2762.     -category   ("Display")
  2763.     -command    ("performSubdivDisplaySmoothnessRough 0")
  2764.     SubdivSmoothnessRough;
  2765.  
  2766. runTimeCommand -default true 
  2767.     -annotation ("Rough Options")
  2768.     -category   ("Display")
  2769.     -command    ("performSubdivDisplaySmoothnessRough 1")
  2770.     SubdivSmoothnessRoughOptions;
  2771.  
  2772. runTimeCommand -default true 
  2773.     -annotation ("Medium:  Set the display smoothness to medium")
  2774.     -category   ("Display")
  2775.     -command    ("performSubdivDisplaySmoothnessMedium 0")
  2776.     SubdivSmoothnessMedium;
  2777.  
  2778. runTimeCommand -default true 
  2779.     -annotation ("Medium Options")
  2780.     -category   ("Display")
  2781.     -command    ("performSubdivDisplaySmoothnessMedium 1")
  2782.     SubdivSmoothnessMediumOptions;
  2783.  
  2784. runTimeCommand -default true 
  2785.     -annotation ("Fine:  Set the display smoothness to fine")
  2786.     -category   ("Display")
  2787.     -command    ("performSubdivDisplaySmoothnessFine 0")
  2788.     SubdivSmoothnessFine;
  2789.  
  2790. runTimeCommand -default true 
  2791.     -annotation ("Fine Options")
  2792.     -category   ("Display")
  2793.     -command    ("performSubdivDisplaySmoothnessFine 1")
  2794.     SubdivSmoothnessFineOptions;
  2795.  
  2796. //    Fast Interaction.
  2797. //
  2798. runTimeCommand -default true 
  2799.     -annotation ("Fast Interaction: Toggle fast interaction mode")
  2800.     -category   ("Display")
  2801.     -command    ("doFastInteractionItem (!`displayLevelOfDetail -q -lod`)")
  2802.     ToggleFastInteraction;
  2803.  
  2804. //
  2805. //    Window menu.
  2806. //
  2807. // ----------------------------------------------------------------------
  2808.  
  2809. //    General Editors.
  2810. //
  2811. runTimeCommand -default true 
  2812.     -annotation ("Component Editor: Edit various component values " +
  2813.                  "for the selected object(s)")
  2814.     -category   ("Window")
  2815.     -command    ("tearOffPanel \"Component Editor\" " +
  2816.                  "\"componentEditorPanel\" true;")
  2817.     ComponentEditor;
  2818.  
  2819. runTimeCommand -default true 
  2820.     -annotation ("Attribute Spread Sheet: Edit the attributes of the " +
  2821.                  "selected object(s)")
  2822.     -category   ("Window")
  2823.     -command    ("SpreadSheetWindow")
  2824.     SpreadSheetEditor;
  2825.  
  2826. runTimeCommand -default true 
  2827.     -annotation ("Connection Editor: Make connections between " +
  2828.                  "object attributes")
  2829.     -category   ("Window")
  2830.     -command    ("optionVar -iv \"connectWindowActive\" 1; connectWindow")
  2831.     ConnectionEditor;
  2832.  
  2833. runTimeCommand -default true 
  2834.     -annotation ("Display Layer Editor: Edit layer information")
  2835.     -category   ("Window")
  2836.     -command    ("showChannelsLayers(\"Layers\")")
  2837.     LayerEditor;
  2838.  
  2839. runTimeCommand -default true 
  2840.     -annotation ("Blind Data Editor: Create blind data types and " +
  2841.                  "apply, query, or false color blind data")
  2842.     -category   ("Window")
  2843.     -command    ("blindDataEditor")
  2844.     BlindDataEditor;
  2845.  
  2846. runTimeCommand -default true 
  2847.     -annotation ("Tool Settings: Edit settings for current tool")
  2848.     -category   ("Window")
  2849.     -command    ("toolPropertyWindow -inMainWindow false")
  2850.     ToolSettingsWindow;
  2851.  
  2852. runTimeCommand -default true 
  2853.     -annotation ("Channel Control: Set the keyable state of attributes " +
  2854.                  "of the selected object(s)")
  2855.     -category   ("Window")
  2856.     -command    ("lockingKeyableWnd")
  2857.     ChannelControlEditor;
  2858.  
  2859. runTimeCommand -default true 
  2860.     -annotation ("Performance Settings: Edit settings affecting scene " +
  2861.                  "evaluation")
  2862.     -category   ("Window")
  2863.     -command    ("performanceSettingsWin")
  2864.     PerformanceSettingsWindow;
  2865.  
  2866. runTimeCommand -default true 
  2867.     -annotation ("Script Editor: Enter Maya Embedded Language (MEL) commands")
  2868.     -category   ("Window")
  2869.     -command    ("showWindow $gCommandWindow")
  2870.     ScriptEditor;
  2871.  
  2872. if (!`about -mac`) {
  2873.     runTimeCommand -default true 
  2874.         -annotation ("Command Shell: Open a Command Shell window to " +
  2875.                      "enter MEL commands one line at a time")
  2876.         -category   ("Window")
  2877.         -command    ("shellWnd")
  2878.         CommandShell;
  2879. }
  2880.  
  2881. runTimeCommand -default true 
  2882.     -annotation ("Plug-in Manager: Load or automatically load plug-ins")
  2883.     -category   ("Window")
  2884.     -command    ("pluginWin")
  2885.     PluginManager;
  2886.  
  2887. //    Rendering Editors.
  2888. //
  2889. runTimeCommand -default true 
  2890.     -annotation ("Render View: Display rendering image")
  2891.     -category   ("Window")
  2892.     -command    ("tearOffPanel \"Render View\" " +
  2893.                  "\"renderWindowPanel\" true;")
  2894.     RenderViewWindow;
  2895.  
  2896. runTimeCommand -default true 
  2897.     -annotation ("Hardware Render Buffer: Display the scene " +
  2898.                  "through the camera selected for hardware rendering")
  2899.     -category   ("Window")
  2900.     -command    ("glRenderWin")
  2901.     HardwareRenderBuffer;
  2902.  
  2903. runTimeCommand -default true 
  2904.     -annotation ("Rendering Flags: Change the rendering preferences")
  2905.     -category   ("Window")
  2906.     -command    ("renderFlagsWindow")
  2907.     RenderFlagsWindow;
  2908.  
  2909. runTimeCommand -default true 
  2910.     -annotation ("Multilister: Create and edit shading nodes, and assign them to objects in your scene")
  2911.     -category   ("Window")
  2912.     -command    ("tearOffPanel \"Multilister\" \"multiListerPanel\" true;")
  2913.     Multilister;
  2914.  
  2915. runTimeCommand -default true 
  2916.     -annotation ("Shading Group Attributes: Object by object shader properties")
  2917.     -category   ("Window")
  2918.     -command    ("showShadingGroupAttrEditor")
  2919.     ShadingGroupAttributeEditor;
  2920.  
  2921. //    Animation Editors.
  2922. //
  2923. runTimeCommand -default true 
  2924.     -annotation ("Graph Editor: Edit animation curves")
  2925.     -category   ("Window")
  2926.     -command    ("tearOffPanel \"Graph Editor\" \"graphEditor\" true;")
  2927.     GraphEditor;
  2928.  
  2929. runTimeCommand -default true 
  2930.     -annotation ("Dope Sheet: Perform high-level timing and animation event and sound synchronization editing")
  2931.     -category   ("Window")
  2932.     -command    ("tearOffPanel \"Dope Sheet\" \"dopeSheetPanel\" true;")
  2933.     DopeSheetEditor;
  2934.  
  2935. runTimeCommand -default true 
  2936.     -annotation ("Blend Shape: Adjust Blend Shape weights")
  2937.     -category   ("Window")
  2938.     -command    ("tearOffPanel \"Blend Shape\" \"blendShapePanel\" false;")
  2939.     BlendShapeEditor;
  2940.  
  2941. runTimeCommand -default true 
  2942.     -annotation ("Expression Editor: Edit expressions between attributes")
  2943.     -category   ("Window")
  2944.     -command    ("expressionEditor EE \"\" \"\"")
  2945.     ExpressionEditor;
  2946.  
  2947. runTimeCommand -default true 
  2948.     -annotation ("Device Editor: Attach input devices to commands or objects")
  2949.     -category   ("Window")
  2950.     -command    ("tearOffPanel \"Devices\" \"devicePanel\" false;")
  2951.     DeviceEditor;
  2952.  
  2953. //    Relationship Editors.
  2954. //
  2955. runTimeCommand -default true 
  2956.     -annotation ("Set Editor: Edit set membership")
  2957.     -category   ("Window")
  2958.     -command    ("setMembershipEditor")
  2959.     SetEditor;
  2960.  
  2961. runTimeCommand -default true 
  2962.     -annotation ("Deformer Set Editor: Edit deformer set membership")
  2963.     -category   ("Window")
  2964.     -command    ("deformerSetEditor")
  2965.     DeformerSetEditor;
  2966.  
  2967. runTimeCommand -default true 
  2968.     -annotation ("Character Set Editor: Edit character set membership")
  2969.     -category   ("Window")
  2970.     -command    ("characterEditor 0")
  2971.     CharacterSetEditor;
  2972.  
  2973. runTimeCommand -default true 
  2974.     -annotation ("Partition Editor: Edit partition membership")
  2975.     -category   ("Window")
  2976.     -command    ("partitionEditor")
  2977.     PartitionEditor;
  2978.  
  2979. runTimeCommand -default true 
  2980.     -annotation ("Layer Editor: Edit display layer membership")
  2981.     -category   ("Window")
  2982.     -command    ("displayLayerEditor")
  2983.     LayerRelationshipEditor;
  2984.  
  2985. runTimeCommand -default true 
  2986.     -annotation ("Render Layer Editor: Edit render layer membership")
  2987.     -category   ("Window")
  2988.     -command    ("renderLayerEditor")
  2989.     RenderLayerRelationshipEditor;
  2990.  
  2991. runTimeCommand -default true 
  2992.     -annotation ("Dynamic Relationships: Edit dynamic " +
  2993.                  "connections to the objects")
  2994.     -category   ("Window")
  2995.     -command    ("tearOffPanel \"Dynamic Relationships\" " +
  2996.                  "\"dynRelEdPanel\" true;")
  2997.     DynamicRelationshipEditor;
  2998.  
  2999. runTimeCommand -default true 
  3000.     -annotation ("Light-Centric Light Linking: Specify the " +
  3001.                  "object(s) illuminated by particular lights")
  3002.     -category   ("Window")
  3003.     -command    ("lightLinkingEditor")
  3004.     LightCentricLightLinkingEditor;
  3005.  
  3006. runTimeCommand -default true 
  3007.     -annotation ("Object-Centric Light Linking: Specify which" +
  3008.                  "light(s) illuminate particular geometry")
  3009.     -category   ("Window")
  3010.     -command    ("objectLightLinkingEditor")
  3011.     ObjectCentricLightLinkingEditor;
  3012.  
  3013. runTimeCommand -default true 
  3014.     -annotation ("Texture-Centric UV Linking: Specify which UV" +
  3015.                  "set is used by a particular texture")
  3016.     -category   ("Window")
  3017.     -command    ("textureCentricUvLinkingEditor")
  3018.     TextureCentricUVLinkingEditor;
  3019.  
  3020. runTimeCommand -default true 
  3021.     -annotation ("UV-Centric UV Linking: Specify which textures " +
  3022.                  "use a particular UV set")
  3023.     -category   ("Window")
  3024.     -command    ("uvCentricUvLinkingEditor")
  3025.     UVCentricUVLinkingEditor;
  3026.  
  3027. //    Miscellaneous editors and windows.
  3028. //
  3029. runTimeCommand -default true 
  3030.     -annotation ("Attribute Editor: Edit the attributes of the " +
  3031.                  "selected object")
  3032.     -category   ("Window")
  3033.     -command    ("openAEWindow")
  3034.     AttributeEditor;
  3035.  
  3036. runTimeCommand -default true 
  3037.     -annotation ("Outliner: List the objects in the scene")
  3038.     -category   ("Window")
  3039.     -command    ("tearOffPanel \"Outliner\" \"outlinerPanel\" false;")
  3040.     OutlinerWindow;
  3041.  
  3042. runTimeCommand -default true 
  3043.     -annotation ("Hypergraph: Display and edit relationships " +
  3044.                  "among nodes in your scene graphically")
  3045.     -category   ("Window")
  3046.     -command    ("tearOffPanel \"Hypergraph\" \"hyperGraphPanel\" true;")
  3047.     HypergraphWindow;
  3048.  
  3049. runTimeCommand -default true 
  3050.     -annotation ("Render Globals: Change global rendering attributes")
  3051.     -category   ("Window")
  3052.     -command    ("displayRenderGlobalsWindow")
  3053.     RenderGlobalsWindow;
  3054.  
  3055. runTimeCommand -default true 
  3056.     -annotation ("Hypershade: Display and edit connections in " +
  3057.                  "shading networks")
  3058.     -category   ("Window")
  3059.     -command    ("tearOffPanel \"Hypershade\" \"hyperShadePanel\" true;")
  3060.     HypershadeWindow;
  3061.  
  3062. runTimeCommand -default true 
  3063.     -annotation ("Visor: Visual organizer that displays images of " +
  3064.                  "shading nodes")
  3065.     -category   ("Window")
  3066.     -command    ("tearOffPanel \"Visor\" \"VisorPanel\" true;")
  3067.     VisorWindow;
  3068.  
  3069. runTimeCommand -default true 
  3070.     -annotation ("Paint Effects: A 2D/3D paint system using " +
  3071.                  "connected particles to produce effects")
  3072.     -category   ("Window")
  3073.     -command    ("scriptedPanel -e -to dynPaintScriptedPanel")
  3074.     PaintEffectsWindow;
  3075.  
  3076. runTimeCommand -default true 
  3077.     -annotation ("UV Texture Editor: Texture coordinate mapping view")
  3078.     -category   ("Window")
  3079.     -command    ("tearOffPanel \"UV Texture Editor\" " +
  3080.                  "\"polyTexturePlacementPanel\" true;")
  3081.     TextureViewWindow;
  3082.  
  3083. runTimeCommand -default true 
  3084.     -annotation ("Trax Editor: Non-Linear Character Animation Editor")
  3085.     -category   ("Window")
  3086.     -command    ("tearOffPanel \"Trax Editor\" \"clipEditorPanel\" true;")
  3087.     CharacterAnimationEditor;
  3088.  
  3089. runTimeCommand -default true 
  3090.     -annotation ("Playblast: Preview animation by screen-capturing frames")
  3091.     -category   ("Window")
  3092.     -command    ("performPlayblast false")
  3093.     PlayblastWindow;
  3094.  
  3095. runTimeCommand -default true 
  3096.     -annotation ("Playblast Options")
  3097.     -category   ("Window")
  3098.     -command    ("performPlayblast true")
  3099.     PlayblastOptions;
  3100.  
  3101. //    View Arrangements.
  3102. //
  3103. runTimeCommand -default true 
  3104.     -annotation ("Four Panes: Change layout to 4 panels")
  3105.     -category   ("Window")
  3106.     -command    ("switchPanes quad 0; updateToolbox();")
  3107.     FourViewArrangement;
  3108.  
  3109. runTimeCommand -default true 
  3110.     -annotation ("Three Panes Split Top: Change layout to 2 panels on top and 1 below")
  3111.     -category   ("Window")
  3112.     -command    ("switchPanes top3 0; updateToolbox();")
  3113.     ThreeTopSplitViewArrangement;
  3114.  
  3115. runTimeCommand -default true 
  3116.     -annotation ("Three Panes Split Left: Change layout to 2 panels on left and 1 on right")
  3117.     -category   ("Window")
  3118.     -command    ("switchPanes left3 0; updateToolbox();")
  3119.     ThreeLeftSplitViewArrangement;
  3120.  
  3121. runTimeCommand -default true 
  3122.     -annotation ("Three Panes Split Right: Change layout to 2 panels on right and 1 on left")
  3123.     -category   ("Window")
  3124.     -command    ("switchPanes right3 0; updateToolbox();")
  3125.     ThreeRightSplitViewArrangement;
  3126.  
  3127. runTimeCommand -default true 
  3128.     -annotation ("Three Panes Split Bottom: Change layout to 1 panel on top and 2 below")
  3129.     -category   ("Window")
  3130.     -command    ("switchPanes bottom3 0; updateToolbox();")
  3131.     ThreeBottomSplitViewArrangement;
  3132.  
  3133. runTimeCommand -default true 
  3134.     -annotation ("Two Panes Stacked: Change layout to 1 panel on top of another")
  3135.     -category   ("Window")
  3136.     -command    ("switchPanes horizontal2 0; updateToolbox();")
  3137.     TwoStackedViewArrangement;
  3138.  
  3139. runTimeCommand -default true 
  3140.     -annotation ("Two Panes Side by Side: Change layout to 1 panel beside another")
  3141.     -category   ("Window")
  3142.     -command    ("switchPanes vertical2 0; updateToolbox();")
  3143.     TwoSideBySideViewArrangement;
  3144.  
  3145. runTimeCommand -default true 
  3146.     -annotation ("Single Pane: Change layout to 1 panel")
  3147.     -category   ("Window")
  3148.     -command    ("switchPanes single 0; updateToolbox();")
  3149.     SingleViewArrangement;
  3150.  
  3151. runTimeCommand -default true 
  3152.     -annotation ("Previous View Arrangement: Display previous view " +
  3153.                  "arrangement in view history")
  3154.     -category   ("Window")
  3155.     -command    ("switchPanes goBack 0; updateToolbox();")
  3156.     PreviousViewArrangement;
  3157.  
  3158. runTimeCommand -default true 
  3159.     -annotation ("Next View Arrangement: Display next view arrangement " +
  3160.                  "in view history")
  3161.     -category   ("Window")
  3162.     -command    ("panelHistory -e -f mainPanelHistory; updateToolbox();")
  3163.     NextViewArrangement;
  3164.  
  3165. //    Panel layouts.
  3166. //
  3167. runTimeCommand -default true 
  3168.     -annotation ("Single Perspective View")
  3169.     -category   ("Window")
  3170.     -command    ("setNamedPanelLayout \"Single Perspective View\"")
  3171.     SinglePerspectiveViewLayout;
  3172.  
  3173. runTimeCommand -default true 
  3174.     -annotation ("Four View")
  3175.     -category   ("Window")
  3176.     -command    ("setNamedPanelLayout \"Four View\"")
  3177.     FourViewLayout;
  3178.  
  3179. runTimeCommand -default true 
  3180.     -annotation ("Persp/Graph/Hypergraph")
  3181.     -category   ("Window")
  3182.     -command    ("setNamedPanelLayout \"Persp/Graph/Hypergraph\"")
  3183.     PerspGraphHypergraphLayout;
  3184.  
  3185. runTimeCommand -default true 
  3186.     -annotation ("Hypershade/Render/Persp")
  3187.     -category   ("Window")
  3188.     -command    ("setNamedPanelLayout \"Hypershade/Render/Persp\"")
  3189.     HypershadeRenderPerspLayout;
  3190.  
  3191. runTimeCommand -default true 
  3192.     -annotation ("Hypershade/Outliner/Persp")
  3193.     -category   ("Window")
  3194.     -command    ("setNamedPanelLayout \"Hypershade/Outliner/Persp\"")
  3195.     HypershadeOutlinerPerspLayout;
  3196.  
  3197. runTimeCommand -default true 
  3198.     -annotation ("Hypershade/Persp")
  3199.     -category   ("Window")
  3200.     -command    ("setNamedPanelLayout \"Hypershade/Persp\"")
  3201.     HypershadePerspLayout;
  3202.  
  3203. runTimeCommand -default true 
  3204.     -annotation ("Persp/Outliner")
  3205.     -category   ("Window")
  3206.     -command    ("setNamedPanelLayout \"Persp/Outliner\"")
  3207.     PerspOutlinerLayout;
  3208.  
  3209. runTimeCommand -default true 
  3210.     -annotation ("Persp/Graph/Outliner")
  3211.     -category   ("Window")
  3212.     -command    ("setNamedPanelLayout \"Persp/Graph/Outliner\"")
  3213.     PerspGraphOutlinerLayout;
  3214.  
  3215. runTimeCommand -default true 
  3216.     -annotation ("Persp/Graph")
  3217.     -category   ("Window")
  3218.     -command    ("setNamedPanelLayout \"Persp/Graph\"")
  3219.     PerspGraphLayout;
  3220.  
  3221. runTimeCommand -default true 
  3222.     -annotation ("Persp/Relationship Editor")
  3223.     -category   ("Window")
  3224.     -command    ("setNamedPanelLayout \"Persp/Relationship Editor\"")
  3225.     PerspRelationshipEditorLayout;
  3226.  
  3227. runTimeCommand -default true 
  3228.     -annotation ("Persp/UV Texture Editor")
  3229.     -category   ("Window")
  3230.     -command    ("setNamedPanelLayout \"Persp/UV Texture Editor\"")
  3231.     PerspTextureLayout;
  3232.  
  3233. //    Save current layout.
  3234. //
  3235. runTimeCommand -default true 
  3236.     -annotation ("Save Current Layout")
  3237.     -category   ("Window")
  3238.     -command    ("saveCurrentPanelLayout")
  3239.     SaveCurrentLayout;
  3240.  
  3241. //    Frame in view.
  3242. //
  3243. runTimeCommand -default true 
  3244.     -annotation ("Frame All in All Views: Change the cameras " +
  3245.                  "to frame all objects in the view")
  3246.     -category   ("Window")
  3247.     -command    ("fitAllPanels -all")
  3248.     FrameAllInAllViews;
  3249.  
  3250.     runTimeCommand -default true 
  3251.         -annotation ("Frame Selection in All Views: Change the " +
  3252.                      "cameras to frame the selected object(s) in the view")
  3253.         -category   ("Window")
  3254.         -command    ("fitAllPanels -selected")
  3255.         FrameSelectedInAllViews;
  3256.  
  3257. //    Preferences and customization windows.
  3258. //
  3259. runTimeCommand -default true 
  3260.     -annotation ("Preferences: Set and save Maya preferences")
  3261.     -category   ("Window")
  3262.     -command    ("preferencesWnd \"general\";")
  3263.     PreferencesWindow;
  3264.  
  3265. runTimeCommand -default true 
  3266.     -annotation ("Hotkey Preferences: Create, edit and save hotkeys")
  3267.     -category   ("Window")
  3268.     -command    ("hotkeyEditor")
  3269.     HotkeyPreferencesWindow;
  3270.  
  3271. runTimeCommand -default true 
  3272.     -annotation ("Color Preferences: Set colors for the Maya UI")
  3273.     -category   ("Window")
  3274.     -command    ("colorPrefWnd")
  3275.     ColorPreferencesWindow;
  3276.  
  3277. runTimeCommand -default true 
  3278.     -annotation ("Marking Menu Editor: Customize the layout of " +
  3279.                  "the Marking Menus")
  3280.     -category   ("Window")
  3281.     -command    ("menuEditorWnd")
  3282.     MarkingMenuPreferencesWindow;
  3283.  
  3284. runTimeCommand -default true 
  3285.     -annotation ("Shelf Editor: Edit the contents of the Shelf")
  3286.     -category   ("Window")
  3287.     -command    ("shelfEditorDialog")
  3288.     ShelfPreferencesWindow;
  3289.  
  3290. runTimeCommand -default true 
  3291.     -annotation ("Panel Editor: Edit the Panel Layout")
  3292.     -category   ("Window")
  3293.     -command    ("panelEditor \"Panels\"")
  3294.     PanelPreferencesWindow;
  3295.  
  3296. //    Application window functions.
  3297. //
  3298. if (!`about -mac`) {
  3299.     runTimeCommand -default true 
  3300.         -annotation ("Minimize Application: Minimize Maya into one icon")
  3301.         -category   ("Window")
  3302.         -command    ("minimizeApp")
  3303.         MinimizeApplication;
  3304. }
  3305.  
  3306. runTimeCommand -default true 
  3307.     -annotation ("Raise Application Windows: Raises Maya windows " +
  3308.                  "in no particular order")
  3309.     -category   ("Window")
  3310.     -command    ("raiseAllWindows")
  3311.     RaiseApplicationWindows;
  3312.  
  3313. runTimeCommand -default true 
  3314.     -annotation ("Raise Main Window: Brings main Maya window to " +
  3315.                  "the front of the stack")
  3316.     -category   ("Window")
  3317.     -command    ("showWindow MayaWindow")
  3318.     RaiseMainWindow;
  3319.  
  3320. //
  3321. //    Help menu.
  3322. //
  3323. // ----------------------------------------------------------------------
  3324.  
  3325. //    Product information.
  3326. //
  3327. runTimeCommand -default true
  3328.     -annotation ("Product Information: Displays version number " +
  3329.                  "and other product information for Maya")
  3330.     -category   ("Help")
  3331.     -command    ("about")
  3332.     ProductInformation;
  3333.  
  3334. //    Open a Help window.
  3335. //
  3336. if (`about -mac`) {
  3337.     runTimeCommand -default true
  3338.         -annotation ("Library: Opens an online table of contents in an HTML browser")
  3339.         -category   ("Help")
  3340.         -command    ("showHelp -docs index.html")
  3341.         Help;
  3342. }
  3343. else {
  3344.       runTimeCommand -default true
  3345.     -annotation ("Library: Opens an online table of contents in an HTML browser")
  3346.     -category   ("Help")
  3347.     -command    ("showHelp -docs index.html")
  3348.     Help;
  3349.      }
  3350. }
  3351. commonMenus();
  3352.  
  3353. // ======================================================================
  3354. // ======================================================================
  3355. //
  3356. //    Modeling menu set, ie. Edit Curves, NURBS, Edit NURBS, 
  3357. //    Polygons, Edit Polygons, and Subdiv Surfaces.
  3358. //
  3359. // ======================================================================
  3360. // ======================================================================
  3361. proc modelingMenus() {
  3362. //
  3363. //    Edit Curves menu.
  3364. //
  3365. // ----------------------------------------------------------------------
  3366.  
  3367. runTimeCommand -default true
  3368.     -annotation ("Duplicate Surface Curves: Select surface curve(s)")
  3369.     -category   ("Edit Curves")
  3370.     -command    ("duplicateCurveToolScript 4")
  3371.     DuplicateCurve;
  3372.  
  3373. runTimeCommand -default true
  3374.     -annotation ("Duplicate Surface Curves Options")
  3375.     -category   ("Edit Curves")
  3376.     -command    ("duplicateCurveToolScript 3")
  3377.     DuplicateCurveOptions;
  3378.  
  3379. runTimeCommand -default true
  3380.     -annotation ("Attach Curves: Select two curves")
  3381.     -category   ("Edit Curves")
  3382.     -command    ("attachCrvToolScript 4")
  3383.     AttachCurve;
  3384.  
  3385. runTimeCommand -default true
  3386.     -annotation ("Attach Curves Options")
  3387.     -category   ("Edit Curves")
  3388.     -command    ("attachCrvToolScript 3")
  3389.     AttachCurveOptions;
  3390.  
  3391. runTimeCommand -default true
  3392.     -annotation ("Detach Curves: Select curve parameter point(s)")
  3393.     -category   ("Edit Curves")
  3394.     -command    ("detachCurveToolScript 4")
  3395.     DetachCurve;
  3396.  
  3397. runTimeCommand -default true
  3398.     -annotation ("Detach Curves Options")
  3399.     -category   ("Edit Curves")
  3400.     -command    ("detachCurveToolScript 3")
  3401.     DetachCurveOptions;
  3402.  
  3403. runTimeCommand -default true
  3404.     -annotation ("Align Curves: Select two curves")
  3405.     -category   ("Edit Curves")
  3406.     -command    ("alignCurveToolScript 4")
  3407.     AlignCurve;
  3408.  
  3409. runTimeCommand -default true
  3410.     -annotation ("Align Curves Options")
  3411.     -category   ("Edit Curves")
  3412.     -command    ("alignCurveToolScript 3")
  3413.     AlignCurveOptions;
  3414.  
  3415. runTimeCommand -default true
  3416.     -annotation ("Open/Close Curves: Select curve(s)")
  3417.     -category   ("Edit Curves")
  3418.     -command    ("closeCurveToolScript 4")
  3419.     OpenCloseCurve;
  3420.  
  3421. runTimeCommand -default true
  3422.     -annotation ("Open/Close Curves Options")
  3423.     -category   ("Edit Curves")
  3424.     -command    ("closeCurveToolScript 3")
  3425.     OpenCloseCurveOptions;
  3426.  
  3427. runTimeCommand -default true
  3428.     -annotation ("Cut Curve: Cuts two curves where they intersect")
  3429.     -category   ("Edit Curves")
  3430.     -command    ("cutCurveToolScript 4")
  3431.     CutCurve;
  3432.  
  3433. runTimeCommand -default true
  3434.     -annotation ("Cut Curve Options")
  3435.     -category   ("Edit Curves")
  3436.     -command    ("cutCurveToolScript 3")
  3437.     CutCurveOptions;
  3438.  
  3439. runTimeCommand -default true
  3440.     -annotation ("Intersect Curves: Select two or more curves - the " +
  3441.                  "last curve intersects all the other ones")
  3442.     -category   ("Edit Curves")
  3443.     -command    ("intersectCurveToolScript 4")
  3444.     IntersectCurve;
  3445.  
  3446. runTimeCommand -default true
  3447.     -annotation ("Intersect Curves Options")
  3448.     -category   ("Edit Curves")
  3449.     -command    ("intersectCurveToolScript 3")
  3450.     IntersectCurveOptions;
  3451.  
  3452. runTimeCommand -default true
  3453.     -annotation ("Curve Fillet: Select curve parameter points")
  3454.     -category   ("Edit Curves")
  3455.     -command    ("filletCurveToolScript 4")
  3456.     CurveFillet;
  3457.  
  3458. runTimeCommand -default true
  3459.     -annotation ("Curve Fillet Options")
  3460.     -category   ("Edit Curves")
  3461.     -command    ("filletCurveToolScript 3")
  3462.     CurveFilletOptions;
  3463.  
  3464. runTimeCommand -default true
  3465.     -annotation ("Insert Knot: Select curve parameter point(s)")
  3466.     -category   ("Edit Curves")
  3467.     -command    ("insertCurveToolScript 4")
  3468.     InsertKnot;
  3469.  
  3470. runTimeCommand -default true
  3471.     -annotation ("Insert Knot Options")
  3472.     -category   ("Edit Curves")
  3473.     -command    ("insertCurveToolScript 3")
  3474.     InsertKnotOptions;
  3475.  
  3476. runTimeCommand -default true
  3477.     -annotation ("Extend Curve: Select curve(s) or curve on surface(s)")
  3478.     -category   ("Edit Curves")
  3479.     -command    ("extendCurveToolScript 4")
  3480.     ExtendCurve;
  3481.  
  3482. runTimeCommand -default true
  3483.     -annotation ("Extend Curve Options")
  3484.     -category   ("Edit Curves")
  3485.     -command    ("extendCurveToolScript 3")
  3486.     ExtendCurveOptions;
  3487.  
  3488. runTimeCommand -default true
  3489.     -annotation ("Extend Curve On Surface: Select curve(s) on surface")
  3490.     -category   ("Edit Curves")
  3491.     -command    ("extendCosCurveToolScript 4")
  3492.     ExtendCurveOnSurface;
  3493.  
  3494. runTimeCommand -default true
  3495.     -annotation ("Extend Curve On Surface Options")
  3496.     -category   ("Edit Curves")
  3497.     -command    ("extendCosCurveToolScript 3")
  3498.     ExtendCurveOnSurfaceOptions;
  3499.  
  3500. runTimeCommand -default true
  3501.     -annotation ("Offset Curve: Select a curve, curve on surface, " +
  3502.                  "isoparm or trim edge")
  3503.     -category   ("Edit Curves")
  3504.     -command    ("offsetCurveToolScript 4")
  3505.     OffsetCurve;
  3506.  
  3507. runTimeCommand -default true
  3508.     -annotation ("Offset Curve Options")
  3509.     -category   ("Edit Curves")
  3510.     -command    ("offsetCurveToolScript 3")
  3511.     OffsetCurveOptions;
  3512.  
  3513. runTimeCommand -default true
  3514.     -annotation ("Offset Curve On Surface: Select a curve on " +
  3515.                  "surface, isoparm or trim edge")
  3516.     -category   ("Edit Curves")
  3517.     -command    ("offsetCosToolScript 4")
  3518.     OffsetCurveOnSurface;
  3519.  
  3520. runTimeCommand -default true
  3521.     -annotation ("Offset Curve On Surface Options")
  3522.     -category   ("Edit Curves")
  3523.     -command    ("offsetCosToolScript 3")
  3524.     OffsetCurveOnSurfaceOptions;
  3525.  
  3526. runTimeCommand -default true
  3527.     -annotation ("Reverse Curves: Select curve(s)")
  3528.     -category   ("Edit Curves")
  3529.     -command    ("reverseCurveToolScript 4")
  3530.     ReverseCurve;
  3531.  
  3532. runTimeCommand -default true
  3533.     -annotation ("Reverse Curves Options")
  3534.     -category   ("Edit Curves")
  3535.     -command    ("reverseCurveToolScript 3")
  3536.     ReverseCurveOptions;
  3537.  
  3538. runTimeCommand -default true
  3539.     -annotation ("Rebuild Curve: Select curve(s) or curve on surface(s)")
  3540.     -category   ("Edit Curves")
  3541.     -command    ("rebuildCurveToolScript 4")
  3542.     RebuildCurve;
  3543.  
  3544. runTimeCommand -default true
  3545.     -annotation ("Rebuild Curve Options")
  3546.     -category   ("Edit Curves")
  3547.     -command    ("rebuildCurveToolScript 3")
  3548.     RebuildCurveOptions;
  3549.  
  3550. runTimeCommand -default true
  3551.     -annotation ("Fit B-spline: Select curve(s), isoparm(s) or trim edge(s)")
  3552.     -category   ("Edit Curves")
  3553.     -command    ("fitBsplineToolScript 4")
  3554.     FitBSpline;
  3555.  
  3556. runTimeCommand -default true
  3557.     -annotation ("Fit B-spline Options")
  3558.     -category   ("Edit Curves")
  3559.     -command    ("fitBsplineToolScript 3")
  3560.     FitBSplineOptions;
  3561.  
  3562. runTimeCommand -default true
  3563.     -annotation ("Smooth Curve: Select control vertices on curve")
  3564.     -category   ("Edit Curves")
  3565.     -command    ("smoothCurveToolScript 4")
  3566.     SmoothCurve;
  3567.  
  3568. runTimeCommand -default true
  3569.     -annotation ("Smooth Curve Options")
  3570.     -category   ("Edit Curves")
  3571.     -command    ("smoothCurveToolScript 3")
  3572.     SmoothCurveOptions;
  3573.  
  3574. runTimeCommand -default true
  3575.     -annotation ("CV Hardness: Select control vertices on curve")
  3576.     -category   ("Edit Curves")
  3577.     -command    ("cvHardnessToolScript 4")
  3578.     CVHardness;
  3579.  
  3580. runTimeCommand -default true
  3581.     -annotation ("CV Hardness Options")
  3582.     -category   ("Edit Curves")
  3583.     -command    ("cvHardnessToolScript 3")
  3584.     CVHardnessOptions;
  3585.  
  3586. runTimeCommand -default true
  3587.     -annotation ("Add Points Tool: Select the curve to add points")
  3588.     -category   ("Edit Curves")
  3589.     -command    ("curveAddPtToolScript 4")
  3590.     AddPointsTool;
  3591.  
  3592. runTimeCommand -default true
  3593.     -annotation ("Curve Editing Tool: Select a curve or curve on surface")
  3594.     -category   ("Edit Curves")
  3595.     -command    ("curveEditorToolScript 4")
  3596.     CurveEditTool;
  3597.  
  3598. runTimeCommand -default true
  3599.     -annotation ("Project Tangent: Select three curves  or any " +
  3600.                  "number of curves and one surface")
  3601.     -category   ("Edit Curves")
  3602.     -command    ("projectTangentToolScript 4")
  3603.     ProjectTangent;
  3604.  
  3605. runTimeCommand -default true
  3606.     -annotation ("Project Tangent Options")
  3607.     -category   ("Edit Curves")
  3608.     -command    ("projectTangentToolScript 3")
  3609.     ProjectTangentOptions;
  3610.  
  3611. //
  3612. //    Surfaces menu.
  3613. //
  3614. // ----------------------------------------------------------------------
  3615.  
  3616. runTimeCommand -default true
  3617.     -annotation ("Revolve: Select curve(s), isoparm(s) or trim edge(s)")
  3618.     -category   ("Surfaces")
  3619.     -command    ("revolveToolScript 4")
  3620.     Revolve;
  3621.  
  3622. runTimeCommand -default true
  3623.     -annotation ("Revolve Options")
  3624.     -category   ("Surfaces")
  3625.     -command    ("revolveToolScript 3")
  3626.     RevolveOptions;
  3627.  
  3628. runTimeCommand -default true
  3629.     -annotation ("Loft: Select curve(s), isoparm(s) or trim edge(s)")
  3630.     -category   ("Surfaces")
  3631.     -command    ("loftToolScript 4")
  3632.     Loft;
  3633.  
  3634. runTimeCommand -default true
  3635.     -annotation ("Loft Options")
  3636.     -category   ("Surfaces")
  3637.     -command    ("loftToolScript 3")
  3638.     LoftOptions;
  3639.  
  3640. runTimeCommand -default true
  3641.     -annotation ("Planar: Select curve(s), isoparm(s) or trim edge(s) " +
  3642.                  "(that together form one or more closed regions)")
  3643.     -category   ("Surfaces")
  3644.     -command    ("planarToolScript 4")
  3645.     Planar;
  3646.  
  3647. runTimeCommand -default true
  3648.     -annotation ("Planar Options")
  3649.     -category   ("Surfaces")
  3650.     -command    ("planarToolScript 3")
  3651.     PlanarOptions;
  3652.  
  3653. runTimeCommand -default true
  3654.     -annotation ("Extrude: Select curve(s), isoparm(s) or trim " +
  3655.                  "edge(s).  Select the path last")
  3656.     -category   ("Surfaces")
  3657.     -command    ("extrudeToolScript 4")
  3658.     Extrude;
  3659.  
  3660. runTimeCommand -default true
  3661.     -annotation ("Extrude Options")
  3662.     -category   ("Surfaces")
  3663.     -command    ("extrudeToolScript 3")
  3664.     ExtrudeOptions;
  3665.  
  3666. runTimeCommand -default true
  3667.     -annotation ("Birail 1 Tool: Select curve(s), isoparm(s) or " +
  3668.                  "trim edge(s)")
  3669.     -category   ("Surfaces")
  3670.     -command    ("birailToolScript 4 1")
  3671.     Birail1;
  3672.  
  3673. runTimeCommand -default true
  3674.     -annotation ("Birail 1 Tool Options")
  3675.     -category   ("Surfaces")
  3676.     -command    ("birailToolScript 3 1")
  3677.     Birail1Options;
  3678.  
  3679. runTimeCommand -default true
  3680.     -annotation ("Birail 2 Tool: Select curve(s), isoparm(s) or " +
  3681.                  "trim edge(s)")
  3682.     -category   ("Surfaces")
  3683.     -command    ("birailToolScript 4 2")
  3684.     Birail2;
  3685.  
  3686. runTimeCommand -default true
  3687.     -annotation ("Birail 2 Tool Options")
  3688.     -category   ("Surfaces")
  3689.     -command    ("birailToolScript 3 2")
  3690.     Birail2Options;
  3691.  
  3692. runTimeCommand -default true
  3693.     -annotation ("Birail 3+ Tool: Select curve(s), isoparm(s) or " +
  3694.                  "trim edge(s)")
  3695.     -category   ("Surfaces")
  3696.     -command    ("birailToolScript 4 3")
  3697.     Birail3;
  3698.  
  3699. runTimeCommand -default true
  3700.     -annotation ("Birail 3+ Tool Options")
  3701.     -category   ("Surfaces")
  3702.     -command    ("birailToolScript 3 3")
  3703.     Birail3Options;
  3704.  
  3705. runTimeCommand -default true
  3706.     -annotation ("Boundary: Select 3 or 4 curves, isoparms or trim edges")
  3707.     -category   ("Surfaces")
  3708.     -command    ("boundaryToolScript 4")
  3709.     Boundary;
  3710.  
  3711. runTimeCommand -default true
  3712.     -annotation ("Boundary Options")
  3713.     -category   ("Surfaces")
  3714.     -command    ("boundaryToolScript 3")
  3715.     BoundaryOptions;
  3716.  
  3717. runTimeCommand -default true
  3718.     -annotation ("Square Surface: Select 3 or 4 curves, isoparms " +
  3719.                  "or trim edges (order of selection is important)")
  3720.     -category   ("Surfaces")
  3721.     -command    ("squareSrfToolScript 4")
  3722.     SquareSurface;
  3723.  
  3724. runTimeCommand -default true
  3725.     -annotation ("Square Surface Options")
  3726.     -category   ("Surfaces")
  3727.     -command    ("squareSrfToolScript 3")
  3728.     SquareSurfaceOptions;
  3729.  
  3730. runTimeCommand -default true
  3731.     -annotation ("Bevel: Select curve(s), isoparm(s) or trim edge(s) or CoS")
  3732.     -category   ("Surfaces")
  3733.     -command    ("bevelToolScript 4")
  3734.     Bevel;
  3735.  
  3736. runTimeCommand -default true
  3737.     -annotation ("Bevel Options")
  3738.     -category   ("Surfaces")
  3739.     -command    ("bevelToolScript 3")
  3740.     BevelOptions;
  3741.  
  3742. runTimeCommand -default true
  3743.     -annotation ("Bevel Plus: Select curve(s), isoparm(s) or trim edge(s) or CoS")
  3744.     -category   ("Surfaces")
  3745.     -command    ("bevelPlusToolScript 4")
  3746.     BevelPlus;
  3747.  
  3748. runTimeCommand -default true
  3749.     -annotation ("Bevel Plus Options")
  3750.     -category   ("Surfaces")
  3751.     -command    ("bevelPlusToolScript 3")
  3752.     BevelPlusOptions;
  3753.  
  3754. //
  3755. //    Edit NURBS menu.
  3756. //
  3757. // ----------------------------------------------------------------------
  3758.  
  3759. runTimeCommand -default true
  3760.     -annotation ("Duplicate NURBS Patches: Select NURBS Patch(es)")
  3761.     -category   ("Edit NURBS")
  3762.     -command    ("duplicateSurfaceToolScript 4")
  3763.     DuplicateNURBSPatches;
  3764.  
  3765. runTimeCommand -default true
  3766.     -annotation ("Duplicate NURBS Patches Options")
  3767.     -category   ("Edit NURBS")
  3768.     -command    ("duplicateSurfaceToolScript 3")
  3769.     DuplicateNURBSPatchesOptions;
  3770.  
  3771. runTimeCommand -default true
  3772.     -annotation ("Project Curve: Select curve(s), isoparm(s) " +
  3773.                  "or trim edge(s) and a target surface")
  3774.     -category   ("Edit NURBS")
  3775.     -command    ("projectToolScript 4")
  3776.     ProjectCurveOnSurface;
  3777.  
  3778. runTimeCommand -default true
  3779.     -annotation ("Project Curve on Surface Options")
  3780.     -category   ("Edit NURBS")
  3781.     -command    ("projectToolScript 3")
  3782.     ProjectCurveOnSurfaceOptions;
  3783.  
  3784. runTimeCommand -default true
  3785.     -annotation ("Intersect Surfaces: Select two or more surfaces " +
  3786.                  "- the last surface intersects all the other ones")
  3787.     -category   ("Edit NURBS")
  3788.     -command    ("intersectToolScript 4")
  3789.     IntersectSurfaces;
  3790.  
  3791. runTimeCommand -default true
  3792.     -annotation ("Intersect Surfaces Options")
  3793.     -category   ("Edit NURBS")
  3794.     -command    ("intersectToolScript 3")
  3795.     IntersectSurfacesOptions;
  3796.  
  3797. runTimeCommand -default true
  3798.     -annotation ("Trim Tool: Select a surface with a curve on it")
  3799.     -category   ("Edit NURBS")
  3800.     -command    ("trimToolScript 4")
  3801.     TrimTool;
  3802.  
  3803. runTimeCommand -default true
  3804.     -annotation ("Trim Tool Options")
  3805.     -category   ("Edit NURBS")
  3806.     -command    ("trimToolScript 3")
  3807.     TrimToolOptions;
  3808.  
  3809. runTimeCommand -default true
  3810.     -annotation ("Untrim Surfaces: Select a trimmed surface")
  3811.     -category   ("Edit NURBS")
  3812.     -command    ("untrimToolScript 4")
  3813.     UntrimSurfaces;
  3814.  
  3815. runTimeCommand -default true
  3816.     -annotation ("Untrim Surfaces Options")
  3817.     -category   ("Edit NURBS")
  3818.     -command    ("untrimToolScript 3")
  3819.     UntrimSurfacesOptions;
  3820.  
  3821. runTimeCommand -default true
  3822.     -annotation ("Union Tool: Select two sets of NURBS surfaces")
  3823.     -category   ("Edit NURBS")
  3824.     -command    ("nurbsBooleanToolScript 4 0")
  3825.     SurfaceBooleanUnionTool;
  3826.  
  3827. runTimeCommand -default true
  3828.     -annotation ("Union Tool Options")
  3829.     -category   ("Edit NURBS")
  3830.     -command    ("nurbsBooleanToolScript 3 0")
  3831.     SurfaceBooleanUnionToolOptions;
  3832.  
  3833. runTimeCommand -default true
  3834.     -annotation ("Subtract Tool: Select two sets of NURBS surfaces")
  3835.     -category   ("Edit NURBS")
  3836.     -command    ("nurbsBooleanToolScript 4 1")
  3837.     SurfaceBooleanSubtractTool;
  3838.  
  3839. runTimeCommand -default true
  3840.     -annotation ("Subtract Tool Options")
  3841.     -category   ("Edit NURBS")
  3842.     -command    ("nurbsBooleanToolScript 3 1")
  3843.     SurfaceBooleanSubtractToolOptions;
  3844.  
  3845. runTimeCommand -default true
  3846.     -annotation ("Intersect Tool: Select two sets of NURBS surfaces")
  3847.     -category   ("Edit NURBS")
  3848.     -command    ("nurbsBooleanToolScript 4 2")
  3849.     SurfaceBooleanIntersectTool;
  3850.  
  3851. runTimeCommand -default true
  3852.     -annotation ("Intersect Tool Options")
  3853.     -category   ("Edit NURBS")
  3854.     -command    ("nurbsBooleanToolScript 3 2")
  3855.     SurfaceBooleanIntersectToolOptions;
  3856.  
  3857. runTimeCommand -default true
  3858.     -annotation ("Attach Surfaces: Select two surfaces")
  3859.     -category   ("Edit NURBS")
  3860.     -command    ("attachSrfToolScript 4")
  3861.     AttachSurfaces;
  3862.  
  3863. runTimeCommand -default true
  3864.     -annotation ("Attach Surfaces Options")
  3865.     -category   ("Edit NURBS")
  3866.     -command    ("attachSrfToolScript 3")
  3867.     AttachSurfacesOptions;
  3868.  
  3869. runTimeCommand -default true
  3870.     -annotation ("Detach Surfaces: Select isoparm(s)")
  3871.     -category   ("Edit NURBS")
  3872.     -command    ("detachSurfaceToolScript 4")
  3873.     DetachSurfaces;
  3874.  
  3875. runTimeCommand -default true
  3876.     -annotation ("Detach Surfaces Options")
  3877.     -category   ("Edit NURBS")
  3878.     -command    ("detachSurfaceToolScript 3")
  3879.     DetachSurfacesOptions;
  3880.  
  3881. runTimeCommand -default true
  3882.     -annotation ("Align Surfaces: Select two surfaces")
  3883.     -category   ("Edit NURBS")
  3884.     -command    ("alignSurfaceToolScript 4")
  3885.     AlignSurfaces;
  3886.  
  3887. runTimeCommand -default true
  3888.     -annotation ("Align Surfaces Options")
  3889.     -category   ("Edit NURBS")
  3890.     -command    ("alignSurfaceToolScript 3")
  3891.     AlignSurfacesOptions;
  3892.  
  3893. runTimeCommand -default true
  3894.     -annotation ("Open/Close Surfaces: Select surface(s) " +
  3895.                  "or isoparm(s) to give direction")
  3896.     -category   ("Edit NURBS")
  3897.     -command    ("closeSurfaceToolScript 4")
  3898.     OpenCloseSurfaces;
  3899.  
  3900. runTimeCommand -default true
  3901.     -annotation ("Open/Close Surfaces Options")
  3902.     -category   ("Edit NURBS")
  3903.     -command    ("closeSurfaceToolScript 3")
  3904.     OpenCloseSurfacesOptions;
  3905.  
  3906. runTimeCommand -default true
  3907.     -annotation ("Insert Isoparms: Select isoparm(s)")
  3908.     -category   ("Edit NURBS")
  3909.     -command    ("insertSurfaceToolScript 4")
  3910.     InsertIsoparms;
  3911.  
  3912. runTimeCommand -default true
  3913.     -annotation ("Insert Isoparms Options")
  3914.     -category   ("Edit NURBS")
  3915.     -command    ("insertSurfaceToolScript 3")
  3916.     InsertIsoparmsOptions;
  3917.  
  3918. runTimeCommand -default true
  3919.     -annotation ("Extend Surfaces: Select surface(s)")
  3920.     -category   ("Edit NURBS")
  3921.     -command    ("extendSurfaceToolScript 4")
  3922.     ExtendSurfaces;
  3923.  
  3924. runTimeCommand -default true
  3925.     -annotation ("Extend Surfaces Options")
  3926.     -category   ("Edit NURBS")
  3927.     -command    ("extendSurfaceToolScript 3")
  3928.     ExtendSurfacesOptions;
  3929.  
  3930. runTimeCommand -default true
  3931.     -annotation ("Offset Surface: Select NURBS surface(s)")
  3932.     -category   ("Edit NURBS")
  3933.     -command    ("offsetSurfaceToolScript 4")
  3934.     OffsetSurfaces;
  3935.  
  3936. runTimeCommand -default true
  3937.     -annotation ("Offset Surface Options")
  3938.     -category   ("Edit NURBS")
  3939.     -command    ("offsetSurfaceToolScript 3")
  3940.     OffsetSurfacesOptions;
  3941.  
  3942. runTimeCommand -default true
  3943.     -annotation ("Reverse Surfaces: Select surface(s) " +
  3944.                  "or isoparm(s) to give direction")
  3945.     -category   ("Edit NURBS")
  3946.     -command    ("reverseSurfaceToolScript 4")
  3947.     ReverseSurfaceDirection;
  3948.  
  3949. runTimeCommand -default true
  3950.     -annotation ("Reverse Surfaces Options")
  3951.     -category   ("Edit NURBS")
  3952.     -command    ("reverseSurfaceToolScript 3")
  3953.     ReverseSurfaceDirectionOptions;
  3954.  
  3955. runTimeCommand -default true
  3956.     -annotation ("Rebuild Surfaces: Select surface(s)")
  3957.     -category   ("Edit NURBS")
  3958.     -command    ("rebuildSurfaceToolScript 4")
  3959.     RebuildSurfaces;
  3960.  
  3961. runTimeCommand -default true
  3962.     -annotation ("Rebuild Surfaces Options")
  3963.     -category   ("Edit NURBS")
  3964.     -command    ("rebuildSurfaceToolScript 3")
  3965.     RebuildSurfacesOptions;
  3966.  
  3967. runTimeCommand -default true
  3968.     -annotation ("Round Tool: Select pairs of surface edges that meet")
  3969.     -category   ("Edit NURBS")
  3970.     -command    ("roundToolScript 4")
  3971.     RoundTool;
  3972.  
  3973. runTimeCommand -default true
  3974.     -annotation ("Round Tool Options")
  3975.     -category   ("Edit NURBS")
  3976.     -command    ("roundToolScript 3")
  3977.     RoundToolOptions;
  3978.  
  3979. runTimeCommand -default true
  3980.     -annotation ("Circular Fillet: Select two surfaces")
  3981.     -category   ("Edit NURBS")
  3982.     -command    ("circFilletToolScript 4")
  3983.     CircularFillet;
  3984.  
  3985. runTimeCommand -default true
  3986.     -annotation ("Circular Fillet Options")
  3987.     -category   ("Edit NURBS")
  3988.     -command    ("circFilletToolScript 3")
  3989.     CircularFilletOptions;
  3990.  
  3991. runTimeCommand -default true
  3992.     -annotation ("Freeform Fillet: Select two curves " +
  3993.                  "on surface, isoparms or trim edges")
  3994.     -category   ("Edit NURBS")
  3995.     -command    ("freeFilletToolScript 4")
  3996.     FreeformFillet;
  3997.  
  3998. runTimeCommand -default true
  3999.     -annotation ("Freeform Fillet Options")
  4000.     -category   ("Edit NURBS")
  4001.     -command    ("freeFilletToolScript 3")
  4002.     FreeformFilletOptions;
  4003.  
  4004. runTimeCommand -default true
  4005.     -annotation ("Fillet Blend Tool: Select curves " +
  4006.                  "on surface, isoparms or trim edges")
  4007.     -category   ("Edit NURBS")
  4008.     -command    ("blendToolScript 4")
  4009.     FilletBlendTool;
  4010.  
  4011. runTimeCommand -default true
  4012.     -annotation ("Fillet Blend Tool Options")
  4013.     -category   ("Edit NURBS")
  4014.     -command    ("blendToolScript 3")
  4015.     FilletBlendToolOptions;
  4016.  
  4017. runTimeCommand -default true
  4018.     -annotation ("Stitch Surface Points: Select edge points " +
  4019.                  "and/or edge CV's on the surface")
  4020.     -category   ("Edit NURBS")
  4021.     -command    ("performStitchSurfacePoints(0)")
  4022.     StitchSurfacePoints;
  4023.  
  4024. runTimeCommand -default true
  4025.     -annotation ("Stitch Surface Points Options")
  4026.     -category   ("Edit NURBS")
  4027.     -command    ("performStitchSurfacePoints(1)")
  4028.     StitchSurfacePointsOptions;
  4029.  
  4030. runTimeCommand -default true
  4031.     -annotation ("Stitch Edges Tool: Select two isoparms")
  4032.     -category   ("Edit NURBS")
  4033.     -command    ("stitchSrfToolScript 4")
  4034.     StitchEdgesTool;
  4035.  
  4036. runTimeCommand -default true
  4037.     -annotation ("Stitch Edges Tool Options")
  4038.     -category   ("Edit NURBS")
  4039.     -command    ("stitchSrfToolScript 3")
  4040.     StitchEdgesToolOptions;
  4041.  
  4042. runTimeCommand -default true
  4043.     -annotation ("Global Stitch: Select NURBS surfaces")
  4044.     -category   ("Edit NURBS")
  4045.     -command    ("globalStitchToolScript 4")
  4046.     GlobalStitch;
  4047.  
  4048. runTimeCommand -default true
  4049.     -annotation ("Global Stitch Options")
  4050.     -category   ("Edit NURBS")
  4051.     -command    ("globalStitchToolScript 3")
  4052.     GlobalStitchOptions;
  4053.  
  4054. runTimeCommand -default true
  4055.     -annotation ("Sculpt Surfaces Tool: Sculpt a NURBS surface")
  4056.     -category   ("Edit NURBS")
  4057.     -command    ("puttyToolScript 4")
  4058.     SculptSurfacesTool;
  4059.  
  4060. runTimeCommand -default true
  4061.     -annotation ("Sculpt Surfaces Tool Options")
  4062.     -category   ("Edit NURBS")
  4063.     -command    ("puttyToolScript 3")
  4064.     SculptSurfacesToolOptions;
  4065.  
  4066. runTimeCommand -default true
  4067.     -annotation ("Surface Editing Tool: Select a surface")
  4068.     -category   ("Edit NURBS")
  4069.     -command    ("surfaceEditorToolScript 4")
  4070.     SurfaceEditingTool;
  4071.  
  4072. runTimeCommand -default true
  4073.     -annotation ("Surface Editing Tool Options")
  4074.     -category   ("Edit NURBS")
  4075.     -command    ("surfaceEditorToolScript 3")
  4076.     SurfaceEditingToolOptions;
  4077.  
  4078. runTimeCommand -default true
  4079.     -annotation ("Break Tangent: Select an isoparm or a surface point")
  4080.     -category   ("Edit NURBS")
  4081.     -command    ("breakTangentToolScript 4")
  4082.     BreakTangent;
  4083.  
  4084. runTimeCommand -default true
  4085.     -annotation ("Smooth Tangent: Select an isoparm or a surface point")
  4086.     -category   ("Edit NURBS")
  4087.     -command    ("smoothTangentToolScript 4")
  4088.     SmoothTangent;
  4089.  
  4090. //
  4091. //    Polygons menu.
  4092. //
  4093. // ----------------------------------------------------------------------
  4094.  
  4095. runTimeCommand -default true
  4096.     -annotation ("Create Polygon Tool: Create polygon faces")
  4097.     -category   ("Polygons")
  4098.     -command    ("setToolTo polyCreateFacetContext ; " +
  4099.                  "polyCreateFacetCtx -e -pc `optionVar " +
  4100.                  "-q polyKeepFacetsPlanar` polyCreateFacetContext")
  4101.     CreatePolygonTool;
  4102.  
  4103. runTimeCommand -default true
  4104.     -annotation ("Create Polygon Tool Options")
  4105.     -category   ("Polygons")
  4106.     -command    ("setToolTo polyCreateFacetContext ; " +
  4107.                  "polyCreateFacetCtx -e -pc `optionVar " +
  4108.                  "-q polyKeepFacetsPlanar` polyCreateFacetContext; " +
  4109.                  "toolPropertyWindow")
  4110.     CreatePolygonToolOptions;
  4111.  
  4112. runTimeCommand -default true
  4113.     -annotation ("Append to Polygon Tool: Append a face to the " +
  4114.                  "selected shell. Select border edges to append a face to")
  4115.     -category   ("Polygons")
  4116.     -command    ("setToolTo polyAppendFacetContext ; " +
  4117.                  "polyAppendFacetCtx -e -pc `optionVar " +
  4118.                  "-q polyKeepFacetsPlanar` polyAppendFacetContext")
  4119.     AppendToPolygonTool;
  4120.  
  4121. runTimeCommand -default true
  4122.     -annotation ("Append to Polygon Tool Options")
  4123.     -category   ("Polygons")
  4124.     -command    ("setToolTo polyAppendFacetContext ; " +
  4125.                  "polyAppendFacetCtx -e -pc `optionVar " +
  4126.                  "-q polyKeepFacetsPlanar` polyAppendFacetContext; " +
  4127.                  "toolPropertyWindow")
  4128.     AppendToPolygonToolOptions;
  4129.  
  4130. runTimeCommand -default true
  4131.     -annotation ("Combine: Combine the selected polygon objects " +
  4132.                  "into one single object to allow operations such " +
  4133.                  "as merges or face trims")
  4134.     -category   ("Polygons")
  4135.     -command    ("polyPerformAction polyUnite o 0")
  4136.     CombinePolygons;
  4137.  
  4138. runTimeCommand -default true
  4139.     -annotation ("Union: Performs a boolean Union on the selected " +
  4140.                  "polygon objects, creating a new object")
  4141.     -category   ("Polygons")
  4142.     -command    ("polyPerformAction \"polyBoolOp -op 1\" o 0")
  4143.     PolygonBooleanUnion;
  4144.  
  4145. runTimeCommand -default true
  4146.     -annotation ("Difference: Performs a boolean Difference on the " +
  4147.                  "selected polygon objects, creating a new object")
  4148.     -category   ("Polygons")
  4149.     -command    ("polyPerformAction \"polyBoolOp -op 2\" o 0")
  4150.     PolygonBooleanDifference;
  4151.  
  4152. runTimeCommand -default true
  4153.     -annotation ("Intersection: Performs a boolean Intersection " +
  4154.                  "on the selected polygon objects, creating a new object")
  4155.     -category   ("Polygons")
  4156.     -command    ("polyPerformAction \"polyBoolOp -op 3\" o 0")
  4157.     PolygonBooleanIntersection;
  4158.  
  4159. runTimeCommand -default true
  4160.     -annotation ("Mirror: Mirror geometry across an axis")
  4161.     -category   ("Polygons")
  4162.     -command    ("performPolyMirror 0")
  4163.     MirrorPolygonGeometry;
  4164.  
  4165. runTimeCommand -default true
  4166.     -annotation ("Mirror Options")
  4167.     -category   ("Polygons")
  4168.     -command    ("performPolyMirror 1")
  4169.     MirrorPolygonGeometryOptions;
  4170.  
  4171. runTimeCommand -default true
  4172.     -annotation ("Smooth: Add polygons to the selected polygon " +
  4173.                  "objects to smooth them")
  4174.     -category   ("Polygons")
  4175.     -command    ("performPolySmooth 0")
  4176.     SmoothPolygon;
  4177.  
  4178. runTimeCommand -default true
  4179.     -annotation ("Smooth Proxy: Make the selected polygon object " +
  4180.                  "a proxy for a new smoothed polygon object")
  4181.     -category   ("Polygons")
  4182.     -command    ("performSmoothProxy 0")
  4183.     SmoothProxy;
  4184.  
  4185. runTimeCommand -default true
  4186.     -annotation ("Average Vertex: Move selected vertices to round shape")
  4187.     -category   ("Polygons")
  4188.     -command    ("polyPerformAction polyAverageVertex v 0")
  4189.     AverageVertex;
  4190.  
  4191. runTimeCommand -default true
  4192.     -annotation ("Smooth Options")
  4193.     -category   ("Polygons")
  4194.     -command    ("performPolySmooth 1")
  4195.     SmoothPolygonOptions;
  4196.  
  4197. runTimeCommand -default true
  4198.     -annotation ("Smooth Proxy Options")
  4199.     -category   ("Polygons")
  4200.     -command    ("performSmoothProxy 1")
  4201.     SmoothProxyOptions;
  4202.  
  4203. runTimeCommand -default true
  4204.     -annotation ("Reduce : Reduce number of polygonal components " +
  4205.                  "for selected objects")
  4206.     -category   ("Polygons")
  4207.     -command    ("performPolyReduce 0")
  4208.     ReducePolygon;
  4209.  
  4210. runTimeCommand -default true
  4211.     -annotation ("Reduce Options")
  4212.     -category   ("Polygons")
  4213.     -command    ("performPolyReduce 1")
  4214.     ReducePolygonOptions;
  4215.  
  4216. runTimeCommand -default true
  4217.     -annotation ("Triangulate: Change the selected faces into triangles")
  4218.     -category   ("Polygons")
  4219.     -command    ("polyPerformAction polyTriangulate f 0")
  4220.     Triangulate;
  4221.  
  4222. runTimeCommand -default true
  4223.     -annotation ("Quadrangulate: Change the selected faces " +
  4224.                  "into quadrilaterals")
  4225.     -category   ("Polygons")
  4226.     -command    ("performPolyQuadrangulate 0")
  4227.     Quadrangulate;
  4228.  
  4229. runTimeCommand -default true
  4230.     -annotation ("Quadrangulate Options")
  4231.     -category   ("Polygons")
  4232.     -command    ("performPolyQuadrangulate 1")
  4233.     QuadrangulateOptions;
  4234.  
  4235. runTimeCommand -default true
  4236.     -annotation ("NURBS to Polygons: Select nurbs surface(s)")
  4237.     -category   ("Polygons")
  4238.     -command    ("performnurbsToPoly 0")
  4239.     NURBSToPolygons;
  4240.  
  4241. runTimeCommand -default true
  4242.     -annotation ("NURBS to Polygons Options")
  4243.     -category   ("Polygons")
  4244.     -command    ("performnurbsToPoly 1")
  4245.     NURBSToPolygonsOptions;
  4246.  
  4247. runTimeCommand -default true
  4248.     -annotation ("Cleanup : Select, or select and remove, " +
  4249.                  "different types of polygonal geometry")
  4250.     -category   ("Polygons")
  4251.     -command    ("performPolyCleanup 0")
  4252.     CleanupPolygon;
  4253.  
  4254. runTimeCommand -default true
  4255.     -annotation ("Cleanup Options")
  4256.     -category   ("Polygons")
  4257.     -command    ("performPolyCleanup 1")
  4258.     CleanupPolygonOptions;
  4259.  
  4260. //
  4261. //    Edit Polygons menu.
  4262. //
  4263. // ----------------------------------------------------------------------
  4264.  
  4265. /*
  4266. //    These run time commands need to be created but have not been done
  4267. //    so yet because of how the menu items are created that would use
  4268. //    them.  The script is PolyTextureMenu.mel.  And for many of the menu
  4269. //    items the command attached depends on the destination of the menu.
  4270. //
  4271. runTimeCommand -default true
  4272.     -annotation ("")
  4273.     -category   ("Edit Polygons")
  4274.     -command    ("")
  4275.     CreateEmptyUVSet;
  4276.  
  4277. runTimeCommand -default true
  4278.     -annotation ("")
  4279.     -category   ("Edit Polygons")
  4280.     -command    ("")
  4281.     CopyCurrentUVSet;
  4282.  
  4283. runTimeCommand -default true
  4284.     -annotation ("")
  4285.     -category   ("Edit Polygons")
  4286.     -command    ("")
  4287.     PlanarTextureMapping;
  4288.  
  4289. runTimeCommand -default true
  4290.     -annotation ("")
  4291.     -category   ("Edit Polygons")
  4292.     -command    ("")
  4293.     CylindricalTextureMapping;
  4294.  
  4295. runTimeCommand -default true
  4296.     -annotation ("")
  4297.     -category   ("Edit Polygons")
  4298.     -command    ("")
  4299.     SphericalTextureMapping;
  4300. */
  4301.  
  4302. runTimeCommand -default true
  4303.     -annotation ("Automatic Projection")
  4304.     -category   ("Edit Polygons")
  4305.     -command    ("polyPerformAction polyAutoProjection f 0")
  4306.     AutoProjection;
  4307.  
  4308. runTimeCommand -default true
  4309.     -annotation ("Set the current UV Set on selected objects")
  4310.     -category   ("Edit Polygons")
  4311.     -command    ("performSetCurrentUVSet 1")
  4312.     SetCurrentUVSet;
  4313.  
  4314. runTimeCommand -default true
  4315.     -annotation ("Rename the current UV Set on selected objects")
  4316.     -category   ("Edit Polygons")
  4317.     -command    ("performRenameCurrentUVSet 1")
  4318.     RenameCurrentUVSet;
  4319.  
  4320. runTimeCommand -default true
  4321.     -annotation ("Delete the current UV Set on selected objects")
  4322.     -category   ("Edit Polygons")
  4323.     -command    ("performDeleteCurrentUVSet 0")
  4324.     DeleteCurrentUVSet;
  4325.  
  4326. /*
  4327. //    These run time commands need to be created but have not been done
  4328. //    so yet because of how the menu items are created that would use
  4329. //    them.  The script is PolyTextureMenu.mel.  And for many of the menu
  4330. //    items the command attached depends on the destination of the menu.
  4331. //
  4332. runTimeCommand -default true
  4333.     -annotation ("")
  4334.     -category   ("Edit Polygons")
  4335.     -command    ("")
  4336.     CreateUVsBasedOnCamera;
  4337. */
  4338.  
  4339. runTimeCommand -default true
  4340.     -annotation ("Normalize UVs: Normalize UVs of the selected faces")
  4341.     -category   ("Edit Polygons")
  4342.     -command    ("performPolyForceUV normalize 0")
  4343.     NormalizeUVs;
  4344.  
  4345. /*
  4346. //    These run time commands need to be created but have not been done
  4347. //    so yet because of how the menu items are created that would use
  4348. //    them.  The script is PolyTextureMenu.mel.  And for many of the menu
  4349. //    items the command attached depends on the destination of the menu.
  4350. //
  4351. runTimeCommand -default true
  4352.     -annotation ("")
  4353.     -category   ("Edit Polygons")
  4354.     -command    ("")
  4355.     UnitizeUVs;
  4356. */
  4357.  
  4358. runTimeCommand -default true
  4359.     -annotation ("Flip UVs")
  4360.     -category   ("Edit Polygons")
  4361.     -command    ("performPolyForceUV flip 0")
  4362.     FlipUVs;
  4363.  
  4364. runTimeCommand -default true
  4365.     -annotation ("Rotate UVs: Rotate selected UVs about vertex")
  4366.     -category   ("Edit Polygons")
  4367.     -command    ("performPolyRotateUVs 0")
  4368.     RotateUVs;
  4369.  
  4370. runTimeCommand -default true
  4371.     -annotation ("Best Plane Texturing Tool: Create UVs by " +
  4372.                  "computing the best fitting plane")
  4373.     -category   ("Edit Polygons")
  4374.     -command    ("setToolTo polyBestPlaneTexturingContext")
  4375.     BestPlaneTexturingTool;
  4376.  
  4377. runTimeCommand -default true
  4378.     -annotation ("Map UV Border: Map the texture border indicated " +
  4379.                  "by selected UV to specified shape")
  4380.     -category   ("Edit Polygons")
  4381.     -command    ("performPolyUntangleUV map 0")
  4382.     MapUVBorder;
  4383.  
  4384. runTimeCommand -default true
  4385.     -annotation ("Relax UVs : Relax the selected UVs")
  4386.     -category   ("Edit Polygons")
  4387.     -command    ("performPolyUntangleUV relax 0")
  4388.     RelaxUVShell;
  4389.  
  4390. runTimeCommand -default true
  4391.     -annotation ("Layout UVs: Lay out the UV pieces in the texture plane to avoid ovelaps")
  4392.     -category   ("Edit Polygons")
  4393.     -command    ("polyPerformAction polyLayoutUV f 0")
  4394.     LayoutUV;
  4395.  
  4396. runTimeCommand -default true
  4397.     -annotation ("Grid UVSs: Snap selected UVs to user specified grid")
  4398.     -category   ("Edit Polygons")
  4399.     -command    ("performPolyGridUV 0")
  4400.     GridUV;
  4401.  
  4402. runTimeCommand -default true
  4403.     -annotation ("Grid UV Options")
  4404.     -category   ("Edit Polygons")
  4405.     -command    ("performPolyGridUV 1")
  4406.     GridUVOptions;
  4407.  
  4408. runTimeCommand -default true
  4409.     -annotation ("Cut UVs: Separate the texture coordinates along " +
  4410.                  "the selected edges")
  4411.     -category   ("Edit Polygons")
  4412.     -command    ("polyPerformAction polyMapCut e 0")
  4413.     CutUVs;
  4414.  
  4415. runTimeCommand -default true
  4416.     -annotation ("Sew UVs: Sew the textures together along the " +
  4417.                  "selected edges")
  4418.     -category   ("Edit Polygons")
  4419.     -command    ("polyPerformAction polyMapSew e 0")
  4420.     SewUVs;
  4421.  
  4422. runTimeCommand -default true
  4423.     -annotation ("Move and Sew UVs: Sew the textures together along the selected edges. Pieces are moved according to common edges")
  4424.     -category   ("Edit Polygons")
  4425.     -command    ("polyPerformAction polyMapSewMove e 0")
  4426.     MoveSewUVs;
  4427.  
  4428. runTimeCommand -default true
  4429.     -annotation ("Delete UVs: Deletes the texture coordinates " +
  4430.                  "of the selected faces")
  4431.     -category   ("Edit Polygons")
  4432.     -command    ("polyPerformAction polyMapDel f 0")
  4433.     DeleteUVs;
  4434.  
  4435. runTimeCommand -default true
  4436.     -annotation ("Subdivide: Subdivide the selected edges or faces")
  4437.     -category   ("Edit Polygons")
  4438.     -command    ("performPolySubdivide \"\" 0")
  4439.     SubdividePolygon;
  4440.  
  4441. runTimeCommand -default true
  4442.     -annotation ("Subdivide Options")
  4443.     -category   ("Edit Polygons")
  4444.     -command    ("performPolySubdivide \"\" 1")
  4445.     SubdividePolygonOptions;
  4446.  
  4447. runTimeCommand -default true
  4448.     -annotation ("Split Polygon Tool: Select a point on an edge " +
  4449.                  "to start cutting the face")
  4450.     -category   ("Edit Polygons")
  4451.     -command    ("setToolTo polySplitContext")
  4452.     SplitPolygonTool;
  4453.  
  4454. runTimeCommand -default true
  4455.     -annotation ("Split Polygon Tool Options")
  4456.     -category   ("Edit Polygons")
  4457.     -command    ("setToolTo polySplitContext ; toolPropertyWindow")
  4458.     SplitPolygonToolOptions;
  4459.  
  4460. runTimeCommand -default true
  4461.     -annotation ("Paint Reduce Weights Tool: Paint vertices with importance. A higher value means it is less likely to be reduced.")
  4462.     -category   ("Edit Polygons")
  4463.     -command    ("polyLaunchPaintReduceTool")
  4464.     PaintReduceWeightsTool;
  4465.  
  4466. runTimeCommand -default true
  4467.     -annotation ("Paint Reduce Weights Tool Options")
  4468.     -category   ("Edit Polygons")
  4469.     -command    ("PaintReduceWeightsTool; toolPropertyWindow;")
  4470.     PaintReduceWeightsToolOptions;
  4471.  
  4472. runTimeCommand -default true
  4473.     -annotation ("Extrude Face: Extrude the currently selected faces " +
  4474.                  "and control the extrusion using the manipulators")
  4475.     -category   ("Edit Polygons")
  4476.     -command    ("performPolyChipOff 0 2")
  4477.     ExtrudeFace;
  4478.  
  4479. runTimeCommand -default true
  4480.     -annotation ("Extrude Face Options")
  4481.     -category   ("Edit Polygons")
  4482.     -command    ("performPolyChipOff 1 2")
  4483.     ExtrudeFaceOptions;
  4484.  
  4485. runTimeCommand -default true
  4486.     -annotation ("Extrude Edge: Extrude the currently selected edges " +
  4487.                  "and control the extrusion using the manipulators")
  4488.     -category   ("Edit Polygons")
  4489.     -command    ("performPolyChipOff 0 4")
  4490.     ExtrudeEdge;
  4491.  
  4492. runTimeCommand -default true
  4493.     -annotation ("Extrude Edge Options")
  4494.     -category   ("Edit Polygons")
  4495.     -command    ("performPolyChipOff 1 4")
  4496.     ExtrudeEdgeOptions;
  4497.  
  4498. runTimeCommand -default true
  4499.     -annotation ("Extrude Vertex: Extrude the currently selected vertices " +
  4500.                  "and control the extrusion using the channelbox")
  4501.     -category   ("Edit Polygons")
  4502.     -command    ("performPolyExtrudeVertex 0")
  4503.     ExtrudeVertex;
  4504.  
  4505. runTimeCommand -default true
  4506.     -annotation ("Extrude Vertex Options")
  4507.     -category   ("Edit Polygons")
  4508.     -command    ("performPolyExtrudeVertex 1")
  4509.     ExtrudeVertexOptions;
  4510.  
  4511. runTimeCommand -default true
  4512.     -annotation ("ChamferVertex: Chamfer the selected vertices")
  4513.     -category   ("Edit Polygons")
  4514.     -command    ("performPolyChamferVertex 0")
  4515.     ChamferVertex;
  4516.  
  4517. runTimeCommand -default true
  4518.     -annotation ("ChamferVertex Options")
  4519.     -category   ("Edit Polygons")
  4520.     -command    ("performPolyChamferVertex 1")
  4521.     ChamferVertexOptions;
  4522.  
  4523. runTimeCommand -default true
  4524.     -annotation ("Bevel: Create a bevel along the selected edges")
  4525.     -category   ("Edit Polygons")
  4526.     -command    ("performPolyBevel 0")
  4527.     BevelPolygon;
  4528.  
  4529. runTimeCommand -default true
  4530.     -annotation ("Bevel Options")
  4531.     -category   ("Edit Polygons")
  4532.     -command    ("performPolyBevel 1")
  4533.     BevelPolygonOptions;
  4534.  
  4535. runTimeCommand -default true
  4536.     -annotation ("Cut Faces: Cut the faces using a plane")
  4537.     -category   ("Edit Polygons")
  4538.     -command    ("performPolyCut 0")
  4539.     CutPolygon;
  4540.  
  4541. runTimeCommand -default true
  4542.     -annotation ("Cut Options")
  4543.     -category   ("Edit Polygons")
  4544.     -command    ("performPolyCut 1")
  4545.     CutPolygonOptions;
  4546.  
  4547. runTimeCommand -default true
  4548.     -annotation ("Poke Faces: Poke the selected faces by creating " +
  4549.                  "a new vertex at the center of each face")
  4550.     -category   ("Edit Polygons")
  4551.     -command    ("performPolyPoke 0")
  4552.     PokePolygon;
  4553.  
  4554. runTimeCommand -default true
  4555.     -annotation ("Poke Options")
  4556.     -category   ("Edit Polygons")
  4557.     -command    ("performPolyPoke 1")
  4558.     PokePolygonOptions;
  4559.  
  4560. runTimeCommand -default true
  4561.     -annotation ("Wedge Faces: Wedge the selected faces by extruding " +
  4562.                  "& rotating them about a selected edge in those faces")
  4563.     -category   ("Edit Polygons")
  4564.     -command    ("performPolyWedgeFace 0")
  4565.     WedgePolygon;
  4566.  
  4567. runTimeCommand -default true
  4568.     -annotation ("Wedge Options")
  4569.     -category   ("Edit Polygons")
  4570.     -command    ("performPolyWedgeFace 1")
  4571.     WedgePolygonOptions;
  4572.  
  4573. runTimeCommand -default true
  4574.     -annotation ("Merge Vertices: Merge selected vertices if " +
  4575.                  "within a given distance")
  4576.     -category   ("Edit Polygons")
  4577.     -command    ("performPolyMergeVertex 0")
  4578.     MergeVertices;
  4579.  
  4580. runTimeCommand -default true
  4581.     -annotation ("Merge Vertices Options")
  4582.     -category   ("Edit Polygons")
  4583.     -command    ("performPolyMergeVertex 1")
  4584.     MergeVerticesOptions;
  4585.  
  4586. runTimeCommand -default true
  4587.     -annotation ("Merge Multiple Edges: Merge selected edge " +
  4588.                  "pairs if within a given threshold")
  4589.     -category   ("Edit Polygons")
  4590.     -command    ("performPolySewEdge 0")
  4591.     MergeMultipleEdges;
  4592.  
  4593. runTimeCommand -default true
  4594.     -annotation ("Merge Multiple Edges Options")
  4595.     -category   ("Edit Polygons")
  4596.     -command    ("performPolySewEdge 1")
  4597.     MergeMultipleEdgesOptions;
  4598.  
  4599. runTimeCommand -default true
  4600.     -annotation ("Merge Edge Tool: Merge the two selected border " +
  4601.                  "edges, if topologically possible")
  4602.     -category   ("Edit Polygons")
  4603.     -command    ("setToolTo polyMergeEdgeContext")
  4604.     MergeEdgeTool;
  4605.  
  4606. runTimeCommand -default true
  4607.     -annotation ("Merge Edge Tool Options")
  4608.     -category   ("Edit Polygons")
  4609.     -command    ("setToolTo polyMergeEdgeContext; toolPropertyWindow;")
  4610.     MergeEdgeToolOptions;
  4611.  
  4612. runTimeCommand -default true
  4613.     -annotation ("Flip Edge: Flip the edge between two triangles")
  4614.     -category   ("Edit Polygons")
  4615.     -command    ("polyFlipEdge")
  4616.     FlipTriangleEdge;
  4617.  
  4618. runTimeCommand -default true
  4619.     -annotation ("Collapse: Collapse the selected edges or faces")
  4620.     -category   ("Edit Polygons")
  4621.     -command    ("performPolyCollapse 0")
  4622.     PolygonCollapse;
  4623.  
  4624. runTimeCommand -default true
  4625.     -annotation ("Split Vertex: Split selected vertices, creating a " +
  4626.                  "unique vertex per face")
  4627.     -category   ("Edit Polygons")
  4628.     -command    ("polySplitVertex")
  4629.     SplitVertex;
  4630.  
  4631. runTimeCommand -default true
  4632.     -annotation ("Delete Vertex: Delete selected vertices and their attached edges")
  4633.     -category   ("Edit Polygons")
  4634.     -command    ("polyDeleteVertex")
  4635.     DeleteVertex;
  4636.  
  4637. runTimeCommand -default true
  4638.     -annotation ("Delete Edge: Delete non-border edges and " +
  4639.                  "cleanup their vertices")
  4640.     -category   ("Edit Polygons")
  4641.     -command    ("polyPerformAction \"polyDelEdge -cv true\" e 0")
  4642.     DeleteEdge;
  4643.  
  4644. runTimeCommand -default true
  4645.     -annotation ("Duplicate Face: Duplicate the currently selected " +
  4646.                  "faces in a new shell and shows a manipulator to " +
  4647.                  "adjust their offset")
  4648.     -category   ("Edit Polygons")
  4649.     -command    ("performPolyChipOff 0 1")
  4650.     DuplicateFace;
  4651.  
  4652. runTimeCommand -default true
  4653.     -annotation ("Duplicate Face Options")
  4654.     -category   ("Edit Polygons")
  4655.     -command    ("performPolyChipOff 1 1")
  4656.     DuplicateFaceOptions;
  4657.  
  4658. runTimeCommand -default true
  4659.     -annotation ("Extract: Extract the currently selected faces " +
  4660.                  "from their shell and shows a manipulator to adjust " +
  4661.                  "their offset")
  4662.     -category   ("Edit Polygons")
  4663.     -command    ("performPolyChipOff 0 0")
  4664.     ExtractFace;
  4665.  
  4666. runTimeCommand -default true
  4667.     -annotation ("Extract Options")
  4668.     -category   ("Edit Polygons")
  4669.     -command    ("performPolyChipOff 1 0")
  4670.     ExtractFaceOptions;
  4671.  
  4672. runTimeCommand -default true
  4673.     -annotation ("Separate: Separate the selected polygon object, " +
  4674.                  "creating one single object for each distinct shell")
  4675.     -category   ("Edit Polygons")
  4676.     -command    ("polyPerformAction polySeparate o 0")
  4677.     SeparatePolygon;
  4678.  
  4679. runTimeCommand -default true
  4680.     -annotation ("Make Hole Tool: Make a hole in first " +
  4681.                  "selected face using second face (of same object) to shape the hole")
  4682.     -category   ("Edit Polygons")
  4683.     -command    ("setToolTo polyMergeFacetContext")
  4684.     MakeHoleTool;
  4685.  
  4686. runTimeCommand -default true
  4687.     -annotation ("Make Hole Tool Options")
  4688.     -category   ("Edit Polygons")
  4689.     -command    ("setToolTo polyMergeFacetContext; toolPropertyWindow;")
  4690.     MakeHoleToolOptions;
  4691.  
  4692. runTimeCommand -default true
  4693.     -annotation ("Fill Hole: Create a face filling the hole " +
  4694.                  "around the selected border edge(s)")
  4695.     -category   ("Edit Polygons")
  4696.     -command    ("polyPerformAction polyCloseBorder e 0")
  4697.     FillHole;
  4698.  
  4699. runTimeCommand -default true
  4700.     -annotation ("Sculpt Polygons Tool: Sculpt a polygonal surface")
  4701.     -category   ("Edit Polygons")
  4702.     -command    ("puttyPolyToolScript 4")
  4703.     SculptPolygonsTool;
  4704.  
  4705. runTimeCommand -default true
  4706.     -annotation ("Sculpt Polygons Tool Options")
  4707.     -category   ("Edit Polygons")
  4708.     -command    ("puttyPolyToolScript 3")
  4709.     SculptPolygonsToolOptions;
  4710.  
  4711. runTimeCommand -default true
  4712.     -annotation ("Copy: Copy colors, UVs, and or shaders from a " +
  4713.                  "face to the clipboard")
  4714.     -category   ("Edit Polygons")
  4715.     -command    ("performPolyCopyPaste 0 1")
  4716.     PolygonCopy;
  4717.  
  4718. runTimeCommand -default true
  4719.     -annotation ("Copy Options")
  4720.     -category   ("Edit Polygons")
  4721.     -command    ("performPolyCopyPaste 1 1")
  4722.     PolygonCopyOptions;
  4723.  
  4724. runTimeCommand -default true
  4725.     -annotation ("Paste: Paste colors, UVs, and or shaders to " +
  4726.                  "face(s) from clipboard")
  4727.     -category   ("Edit Polygons")
  4728.     -command    ("performPolyCopyPaste 0 2")
  4729.     PolygonPaste;
  4730.  
  4731. runTimeCommand -default true
  4732.     -annotation ("Paste Options")
  4733.     -category   ("Edit Polygons")
  4734.     -command    ("performPolyCopyPaste 1 2")
  4735.     PolygonPasteOptions;
  4736.  
  4737. runTimeCommand -default true
  4738.     -annotation ("Clear Clipboard: Clear colors, UVs, and or " +
  4739.                  "shaders between faces from clipboard")
  4740.     -category   ("Edit Polygons")
  4741.     -command    ("performPolyCopyPaste 0 3")
  4742.     PolygonClearClipboard;
  4743.  
  4744. runTimeCommand -default true
  4745.     -annotation ("Clear Clipboard Options")
  4746.     -category   ("Edit Polygons")
  4747.     -command    ("performPolyCopyPaste 1 3")
  4748.     PolygonClearClipboardOptions;
  4749.  
  4750. runTimeCommand -default true
  4751.     -annotation ("Grow Selection Region: Grow the selected region " +
  4752.                  "along the polygon surface")
  4753.     -category   ("Edit Polygons")
  4754.     -command    ("PolySelectTraverse 1")
  4755.     GrowPolygonSelectionRegion;
  4756.  
  4757. runTimeCommand -default true
  4758.     -annotation ("Shrink Selection Region: Shrink the selected " +
  4759.                  "region along the polygon surface")
  4760.     -category   ("Edit Polygons")
  4761.     -command    ("PolySelectTraverse 2")
  4762.     ShrinkPolygonSelectionRegion;
  4763.  
  4764. runTimeCommand -default true
  4765.     -annotation ("Select Selection Boundary: Select the boundary " +
  4766.                  "of the current selection region")
  4767.     -category   ("Edit Polygons")
  4768.     -command    ("PolySelectTraverse 3")
  4769.     SelectPolygonSelectionBoundary;
  4770.  
  4771. runTimeCommand -default true
  4772.     -annotation ("Select Contiguous Edges: Select all contiguous " +
  4773.                  "edges that form a loop with the current selection")
  4774.     -category   ("Edit Polygons")
  4775.     -command    ("performSelContiguousEdges 0")
  4776.     SelectContiguousEdges;
  4777.  
  4778. runTimeCommand -default true
  4779.     -annotation ("Select Contiguous Edges Options")
  4780.     -category   ("Edit Polygons")
  4781.     -command    ("performSelContiguousEdges 1")
  4782.     SelectContiguousEdgesOptions;
  4783.  
  4784. runTimeCommand -default true
  4785.     -annotation ("Convert Selection to Faces: Convert selected " +
  4786.                  "components to selected face component")
  4787.     -category   ("Edit Polygons")
  4788.     -command    ("PolySelectConvert 1")
  4789.     ConvertSelectionToFaces;
  4790.  
  4791. runTimeCommand -default true
  4792.     -annotation ("Convert Selection to Edges: Convert selected " +
  4793.                  "components to selected edge component")
  4794.     -category   ("Edit Polygons")
  4795.     -command    ("PolySelectConvert 2")
  4796.     ConvertSelectionToEdges;
  4797.  
  4798. runTimeCommand -default true
  4799.     -annotation ("Convert Selection to Vertices: Convert selected " +
  4800.                  "components to selected vertex component")
  4801.     -category   ("Edit Polygons")
  4802.     -command    ("PolySelectConvert 3")
  4803.     ConvertSelectionToVertices;
  4804.  
  4805. runTimeCommand -default true
  4806.     -annotation ("Convert Selection to UVs: Convert selected " +
  4807.                  "components to selected UV component")
  4808.     -category   ("Edit Polygons")
  4809.     -command    ("PolySelectConvert 4")
  4810.     ConvertSelectionToUVs;
  4811.  
  4812. runTimeCommand -default true
  4813.     -annotation ("Convert Selection to Vertex Faces: Convert selected " +
  4814.                  "components to selected vertex face component")
  4815.     -category   ("Edit Polygons")
  4816.     -command    ("PolySelectConvert 5")
  4817.     ConvertSelectionToVertexFaces;
  4818.  
  4819. runTimeCommand -default true
  4820.     -annotation ("Selection Constraints: Set logical selection " +
  4821.                  "constraints of components of the selected " +
  4822.                  "polygonal surfaces")
  4823.     -category   ("Window")
  4824.     -command    ("openSelectionConstraintWindow")
  4825.     PolygonSelectionConstraints;
  4826.  
  4827. runTimeCommand -default true
  4828.     -annotation ("Apply Color : Apply a color to selected vertices")
  4829.     -category   ("Edit Polygons")
  4830.     -command    ("performApplyColor 0")
  4831.     PolygonApplyColor;
  4832.  
  4833. runTimeCommand -default true
  4834.     -annotation ("Apply Color Options")
  4835.     -category   ("Edit Polygons")
  4836.     -command    ("performApplyColor 1")
  4837.     PolygonApplyColorOptions;
  4838.  
  4839. runTimeCommand -default true
  4840.     -annotation ("Prelight: Perform prelighting to selected components")
  4841.     -category   ("Edit Polygons")
  4842.     -command    ("performPrelight 0")
  4843.     PrelightPolygon;
  4844.  
  4845. runTimeCommand -default true
  4846.     -annotation ("Prelight Options")
  4847.     -category   ("Edit Polygons")
  4848.     -command    ("performPrelight 1")
  4849.     PrelightPolygonOptions;
  4850.  
  4851. runTimeCommand -default true
  4852.     -annotation ("Paint Vertex Color Tool: Paint a specified " +
  4853.                  "color value and alpha on polygon vertices")
  4854.     -category   ("Edit Polygons")
  4855.     -command    ("artAttrColorPerVertexToolScript 4")
  4856.     PaintVertexColorTool;
  4857.  
  4858. runTimeCommand -default true
  4859.     -annotation ("Paint Vertex Color Tool Options")
  4860.     -category   ("Edit Polygons")
  4861.     -command    ("artAttrColorPerVertexToolScript 3")
  4862.     PaintVertexColorToolOptions;
  4863.  
  4864. runTimeCommand -default true
  4865.     -annotation ("Set Vertex Normal: Set the value of normals " +
  4866.                  "of selected vertices or vertex-faces")
  4867.     -category   ("Edit Polygons")
  4868.     -command    ("performPolySetNormal 0")
  4869.     SetVertexNormal;
  4870.  
  4871. runTimeCommand -default true
  4872.     -annotation ("Set Vertex Normal Options")
  4873.     -category   ("Edit Polygons")
  4874.     -command    ("performPolySetNormal 1")
  4875.     SetVertexNormalOptions;
  4876.  
  4877. runTimeCommand -default true
  4878.     -annotation ("Average Normals: Set the normals of selected " +
  4879.                  "vertices or vertex-faces within a specified " +
  4880.                  "distance of each other to their average")
  4881.     -category   ("Edit Polygons")
  4882.     -command    ("performPolyAverageNormal 0")
  4883.     AveragePolygonNormals;
  4884.  
  4885. runTimeCommand -default true
  4886.     -annotation ("Average Normals Options")
  4887.     -category   ("Edit Polygons")
  4888.     -command    ("performPolyAverageNormal 1")
  4889.     AveragePolygonNormalsOptions;
  4890.  
  4891. runTimeCommand -default true
  4892.     -annotation ("Set to Face Normals: Set the normals of selected " +
  4893.                  "vertices or vertex-faces to their face normals " +
  4894.                  "and unshare them")
  4895.     -category   ("Edit Polygons")
  4896.     -command    ("performPolySetToFaceNormal 0")
  4897.     SetToFaceNormals;
  4898.  
  4899. runTimeCommand -default true
  4900.     -annotation ("Set to Face Normals Options")
  4901.     -category   ("Edit Polygons")
  4902.     -command    ("performPolySetToFaceNormal 1")
  4903.     SetToFaceNormalsOptions;
  4904.  
  4905. runTimeCommand -default true
  4906.     -annotation ("Reverse: Reverse the normals of the selected faces")
  4907.     -category   ("Edit Polygons")
  4908.     -command    ("performPolyNormal 0 -1 0")
  4909.     ReversePolygonNormals;
  4910.  
  4911. runTimeCommand -default true
  4912.     -annotation ("Reverse Options")
  4913.     -category   ("Edit Polygons")
  4914.     -command    ("performPolyNormal 1 -1 0")
  4915.     ReversePolygonNormalsOptions;
  4916.  
  4917. runTimeCommand -default true
  4918.     -annotation ("Conform: Make normals of all selected faces point " +
  4919.                  "in a consistent direction")
  4920.     -category   ("Edit Polygons")
  4921.     -command    ("performPolyNormal 0 2 0")
  4922.     ConformPolygonNormals;
  4923.  
  4924. runTimeCommand -default true
  4925.     -annotation ("Soften/Harden: Set the soft/hard threshold " +
  4926.                  "angles for edge normals")
  4927.     -category   ("Edit Polygons")
  4928.     -command    ("performPolySoftEdge 0")
  4929.     PolygonSoftenHarden;
  4930.  
  4931. runTimeCommand -default true
  4932.     -annotation ("Soften/Harden Options")
  4933.     -category   ("Edit Polygons")
  4934.     -command    ("performPolySoftEdge 1")
  4935.     PolygonSoftenHardenOptions;
  4936.  
  4937. runTimeCommand -default true
  4938.     -annotation ("Move Component: Transform (Scale, Rotate, " +
  4939.                  "Translate...) the selected components (Vertices, " +
  4940.                  "Edges or Faces). UVs are moved in the UV Texture Editor")
  4941.     -category   ("Edit Polygons")
  4942.     -command    ("performPolyMove \"\" 0")
  4943.     MovePolygonComponent;
  4944.  
  4945. runTimeCommand -default true
  4946.     -annotation ("Move Component Options")
  4947.     -category   ("Edit Polygons")
  4948.     -command    ("performPolyMove \"\" 1")
  4949.     MovePolygonComponentOptions;
  4950.  
  4951. //
  4952. //    Subdiv Surfaces menu.
  4953. //
  4954. // ----------------------------------------------------------------------
  4955.  
  4956. runTimeCommand -default true
  4957.     -annotation ("Create Subdiv Surface")
  4958.     -category   ("Subdiv Surfaces")
  4959.     -command    ("performSubdivCreate 0")
  4960.     CreateSubdivSurface;
  4961.  
  4962. runTimeCommand -default true
  4963.     -annotation ("Subdiv To NURBS")
  4964.     -category   ("Subdiv Surfaces")
  4965.     -command    ("performSubdToNurbs 0")
  4966.     SubdivToNURBS;
  4967.  
  4968. runTimeCommand -default true
  4969.     -annotation ("Subdiv To NURBS Options")
  4970.     -category   ("Subdiv Surfaces")
  4971.     -command    ("performSubdToNurbs true")
  4972.     SubdivToNURBSOptions;
  4973.  
  4974. runTimeCommand -default true
  4975.     -annotation ("Create Subdiv Surface Options")
  4976.     -category   ("Subdiv Surfaces")
  4977.     -command    ("performSubdivCreate 1")
  4978.     CreateSubdivSurfaceOptions;
  4979.  
  4980. runTimeCommand -default true
  4981.     -annotation ("Tessellate Subdiv Surface")
  4982.     -category   ("Subdiv Surfaces")
  4983.     -command    ("performSubdivTessellate  false")
  4984.     TesselateSubdivSurface;
  4985.  
  4986. runTimeCommand -default true
  4987.     -annotation ("Tessellate Subdiv Surface Options")
  4988.     -category   ("Subdiv Surfaces")
  4989.     -command    ("performSubdivTessellate  true")
  4990.     TesselateSubdivSurfaceOptions;
  4991.  
  4992. runTimeCommand -default true
  4993.     -annotation ("Extract Subdiv Surface Vertices")
  4994.     -category   ("Subdiv Surfaces")
  4995.     -command    ("performSubdivExtract  false")
  4996.     ExtractSubdivSurfaceVertices;
  4997.  
  4998. runTimeCommand -default true
  4999.     -annotation ("Extract Subdiv Surface Vertices Options")
  5000.     -category   ("Subdiv Surfaces")
  5001.     -command    ("performSubdivExtract  true")
  5002.     ExtractSubdivSurfaceVerticesOptions;
  5003.  
  5004. runTimeCommand -default true
  5005.     -annotation ("Remove a number of low levels of the " +
  5006.                  "subdivision surface hieararchy")
  5007.     -category   ("Subdiv Surfaces")
  5008.     -command    ("performSubdivCollapse false")
  5009.     CollapseSubdivSurfaceHierarchy;
  5010.  
  5011. runTimeCommand -default true
  5012.     -annotation ("Collapse Subdiv Surface Options")
  5013.     -category   ("Subdiv Surfaces")
  5014.     -command    ("performSubdivCollapse  true")
  5015.     CollapseSubdivSurfaceHierarchyOptions;
  5016.  
  5017. runTimeCommand -default true
  5018.     -annotation ("Mirror subdivision surface geometry")
  5019.     -category   ("Subdiv Surfaces")
  5020.     -command    ("performSubdivMirror false")
  5021.     MirrorSubdivSurface;
  5022.  
  5023. runTimeCommand -default true
  5024.     -annotation ("Mirror Subdiv Surface Options")
  5025.     -category   ("Subdiv Surfaces")
  5026.     -command    ("performSubdivMirror  true")
  5027.     MirrorSubdivSurfaceOptions;
  5028.  
  5029. runTimeCommand -default true
  5030.     -annotation ("Attach two subdivision surfaces")
  5031.     -category   ("Subdiv Surfaces")
  5032.     -command    ("performSubdivAttach false")
  5033.     AttachSubdivSurface;
  5034.  
  5035. runTimeCommand -default true
  5036.     -annotation ("Attach Subdiv Surface Options")
  5037.     -category   ("Subdiv Surfaces")
  5038.     -command    ("performSubdivAttach  true")
  5039.     AttachSubdivSurfaceOptions;
  5040.  
  5041. runTimeCommand -default true
  5042.     -annotation ("Put the subdivision surface into standard editing mode")
  5043.     -category   ("Subdiv Surfaces")
  5044.     -command    ("subdIntoHierMode")
  5045.     SubdivSurfaceHierarchyMode;
  5046.  
  5047. runTimeCommand -default true
  5048.     -annotation ("Put the subdivision surface into the polygon proxy mode")
  5049.     -category   ("Subdiv Surfaces")
  5050.     -command    ("subdIntoPolyMode 1 0 0")
  5051.     SubdivSurfacePolygonProxyMode;
  5052.  
  5053. runTimeCommand -default true
  5054.     -annotation ("Match Topology (at all levels) of selected subdivision surfaces")
  5055.     -category   ("Subdiv Surfaces")
  5056.     -command    ("subdMatchTopology")
  5057.     SubdivSurfaceMatchTopology;
  5058.  
  5059. runTimeCommand -default true
  5060.     -annotation ("Remove unnecessary finer level points from selected subdivision surfaces")
  5061.     -category   ("Subdiv Surfaces")
  5062.     -command    ("subdCleanTopology")
  5063.     SubdivSurfaceCleanTopology;
  5064.  
  5065. runTimeCommand -default true
  5066.     -annotation ("Full Crease Subdivision Surface Edge or Vertex " +
  5067.                  "(tangent break)")
  5068.     -category   ("Subdiv Surfaces")
  5069.     -command    ("doSubdCrease 1 1")
  5070.     FullCreaseSubdivSurface;
  5071.  
  5072. runTimeCommand -default true
  5073.     -annotation ("Partial Crease Subdivision Surface Edge or " +
  5074.                  "Vertex (no tangent break)")
  5075.     -category   ("Subdiv Surfaces")
  5076.     -command    ("doSubdCrease 1 0")
  5077.     PartialCreaseSubdivSurface;
  5078.  
  5079. runTimeCommand -default true
  5080.     -annotation ("Uncrease Subdivision Surface Edge or Vertex")
  5081.     -category   ("Subdiv Surfaces")
  5082.     -command    ("doSubdCrease 0 1")
  5083.     UncreaseSubdivSurface;
  5084.  
  5085. runTimeCommand -default true
  5086.     -annotation ("Refine selected subdivision surface components")
  5087.     -category   ("Subdiv Surfaces")
  5088.     -command    ("subdivCreateRegion; " +
  5089.                  "setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` " +
  5090.                  "\"+0\" 0")
  5091.     RefineSelectedComponents;
  5092.  
  5093. runTimeCommand -default true
  5094.     -annotation ("Expand selected subdivision surface components")
  5095.     -category   ("Subdiv Surfaces")
  5096.     -command    ("createSubdivRegion; changeSubdivRegion -action 2; " +
  5097.                  "setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` " +
  5098.                  "\"+0\" 0")
  5099.     ExpandSelectedComponents;
  5100.  
  5101. runTimeCommand -default true
  5102.     -annotation ("Finer Level Component Display")
  5103.     -category   ("Subdiv Surfaces")
  5104.     -command    ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"+1\" 0")
  5105.     FineLevelComponentDisplay;
  5106.  
  5107. runTimeCommand -default true
  5108.     -annotation ("Coarser Level Component Display")
  5109.     -category   ("Subdiv Surfaces")
  5110.     -command    ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"-1\" 0")
  5111.     CoarseLevelComponentDisplay;
  5112.  
  5113. runTimeCommand -default true
  5114.     -annotation ("Base Level Component Display")
  5115.     -category   ("Subdiv Surfaces")
  5116.     -command    ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"0\" 0")
  5117.     BaseLevelComponentDisplay;
  5118.  
  5119. runTimeCommand -default true
  5120.     -annotation ("Coarser Level")
  5121.     -category   ("Subdiv Surfaces")
  5122.     -command    ("subdivCoarserLevel")
  5123.     CoarserSubdivLevel;
  5124.     
  5125. runTimeCommand -default true
  5126.     -annotation ("Subdiv Create Region")
  5127.     -category   ("Subdiv Surfaces")
  5128.     -command    ("subdivCreateRegion")
  5129.     CreateSubdivRegion;
  5130.  
  5131. runTimeCommand -default true
  5132.     -annotation ("Show All Components At Current Level")
  5133.     -category   ("Subdiv Surfaces")
  5134.     -command    ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"+0\" 0")
  5135.     ShowAllComponents;
  5136.  
  5137. runTimeCommand -default true
  5138.     -annotation ("Show All Edited Components At Current Level")
  5139.     -category   ("Subdiv Surfaces")
  5140.     -command    ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"+0\" 1")
  5141.     ShowAllEditedComponents;
  5142.  
  5143. runTimeCommand -default true
  5144.     -annotation ("Cut UVs: Separate the texture coordinates along " +
  5145.                  "the selected edges")
  5146.     -category   ("Subdiv Surfaces")
  5147.     -command    ("subdMapCut")
  5148.     SubdCutUVs;
  5149. }
  5150. modelingMenus();
  5151.  
  5152. // ======================================================================
  5153. // ======================================================================
  5154. //
  5155. //    Animation menu set, ie. Animate, Deform, Skeleton, Skin, Constrain,
  5156. //    and Character.
  5157. //
  5158. // ======================================================================
  5159. // ======================================================================
  5160. proc animationMenus() {
  5161. //
  5162. //    Animate menu.
  5163. //
  5164. // ----------------------------------------------------------------------
  5165.  
  5166. //    Set Key.
  5167. //
  5168. runTimeCommand -default true
  5169.     -annotation ("Set Key: Select object(s) to key")
  5170.     -category   ("Animate")
  5171.     -command    ("performSetKeyframeArgList 1 {\"0\", \"animationList\"}")
  5172.     SetKey;
  5173.  
  5174. runTimeCommand -default true
  5175.     -annotation ("Set Key Options")
  5176.     -category   ("Animate")
  5177.     -command    ("performSetKeyframeArgList 1 {\"1\", \"animationList\"}")
  5178.     SetKeyOptions;
  5179.  
  5180. //    Set a breakdown key.
  5181. //
  5182. runTimeCommand -default true
  5183.     -annotation ("Set Breakdown")
  5184.     -category   ("Animate")
  5185.     -command    ("performSetBreakdown 0 animationList")
  5186.     SetBreakdownKey;
  5187.  
  5188. runTimeCommand -default true
  5189.     -annotation ("Set Breakdown Options")
  5190.     -category   ("Animate")
  5191.     -command    ("performSetBreakdown 1 animationList")
  5192.     SetBreakdownKeyOptions;
  5193.  
  5194. //    Hold Current Keys.
  5195. //
  5196. runTimeCommand -default true
  5197.     -annotation ("Hold Current Keys")
  5198.     -category   ("Animate")
  5199.     -command    ("setKeyframe -insert animationList")
  5200.     HoldCurrentKeys;
  5201.  
  5202. //    Set Driven Key.
  5203. //
  5204. runTimeCommand -default true
  5205.     -annotation ("Set Driven Key")
  5206.     -category   ("Animate")
  5207.     -command    ("setDrivenKeyframe")
  5208.     SetDrivenKey;
  5209.  
  5210. runTimeCommand -default true
  5211.     -annotation ("Set Driven Key Options")
  5212.     -category   ("Animate")
  5213.     -command    ("setDrivenKeyWindow \"\" \"\"")
  5214.     SetDrivenKeyOptions;
  5215.  
  5216. //    Go to Previous Driven Key.
  5217. //
  5218. runTimeCommand -default true
  5219.     -annotation ("Go to Previous Driven Key")
  5220.     -category   ("Animate")
  5221.     -command    ("advanceToNextDrivenKey -previous \"\"")
  5222.     GoToPreviousDrivenKey;
  5223.  
  5224. //    Go to Next Driven Key.
  5225. //
  5226. runTimeCommand -default true
  5227.     -annotation ("Go to Next Driven Key")
  5228.     -category   ("Animate")
  5229.     -command    ("advanceToNextDrivenKey -next \"\"")
  5230.     GoToNextDrivenKey;
  5231.  
  5232. //    Set key for translate/rotate/scale.
  5233. //
  5234. runTimeCommand -default true
  5235.     -annotation ("Set Key for Translate")
  5236.     -category   ("Animate")
  5237.     -command "setKeyframe -at translate" 
  5238.     SetKeyTranslate;
  5239.  
  5240. runTimeCommand -default true
  5241.     -annotation ("Set Key for Rotate")
  5242.     -category   ("Animate")
  5243.     -command "setKeyframe -at rotate" 
  5244.     SetKeyRotate;
  5245.  
  5246. runTimeCommand -default true
  5247.     -annotation ("Set Key for Scale")
  5248.     -category   ("Animate")
  5249.     -command "setKeyframe -at scale" 
  5250.     SetKeyScale;
  5251.  
  5252. //    Create Clip.
  5253. //
  5254. runTimeCommand -default true
  5255.     -annotation ("Create Clip")
  5256.     -category   ("Animate")
  5257.     -command    ("performCreateClip 0")
  5258.     CreateClip;
  5259.  
  5260. runTimeCommand -default true
  5261.     -annotation ("Create Clip Options")
  5262.     -category   ("Animate")
  5263.     -command    ("performCreateClip 1")
  5264.     CreateClipOptions;
  5265.  
  5266. //    Create Pose
  5267. //
  5268. runTimeCommand -default true
  5269.     -annotation ("Create Pose")
  5270.     -category   ("Animate")
  5271.     -command    ("performCreatePose 0")
  5272.     CreatePose;
  5273.  
  5274. runTimeCommand -default true
  5275.     -annotation ("Create Pose Options")
  5276.     -category   ("Animate")
  5277.     -command    ("performCreatePose 1")
  5278.     CreatePoseOptions;
  5279.  
  5280. //    Create Ghost
  5281. //
  5282. runTimeCommand -default true
  5283.     -annotation ("Ghost: Select object(s) to be ghosted.")
  5284.     -category   ("Animate")
  5285.     -command    ("performGhost 0")
  5286.     CreateGhost;
  5287.  
  5288. runTimeCommand -default true
  5289.     -annotation ("Create Ghost Options")
  5290.     -category   ("Animate")
  5291.     -command    ("performGhost 1")
  5292.     CreateGhostOptions;
  5293.  
  5294. //    Create Ghost
  5295. //
  5296. runTimeCommand -default true
  5297.     -annotation ("Unghost: Select object(s) to be unghosted.")
  5298.     -category   ("Animate")
  5299.     -command    ("performUnghost 0")
  5300.     DoUnghost;
  5301.  
  5302. runTimeCommand -default true
  5303.     -annotation ("Unghost Options")
  5304.     -category   ("Animate")
  5305.     -command    ("performUnghost 1")
  5306.     DoUnghostOptions;
  5307.  
  5308. //    Create Motion Trail
  5309. //
  5310. runTimeCommand -default true
  5311.     -annotation ("Motion Trail: Select object(s) to generate a "
  5312.                 + "motion trail over time")
  5313.     -category   ("Animate")
  5314.     -command    ("performMotionTrail 0")
  5315.     CreateMotionTrail;
  5316.  
  5317. runTimeCommand -default true
  5318.     -annotation ("Motion Trail Options")
  5319.     -category   ("Animate")
  5320.     -command    ("performMotionTrail 1")
  5321.     CreateMotionTrailOptions;
  5322.  
  5323. runTimeCommand -default true
  5324.     -annotation ("Animation Snapshot: Select animated object(s) to " +
  5325.                  "snapshot over time")
  5326.     -category   ("Animate")
  5327.     -command    ("performSnapshot 0")
  5328.     AnimationSnapshot;
  5329.  
  5330. runTimeCommand -default true
  5331.     -annotation ("Animation Snapshot Options")
  5332.     -category   ("Animate")
  5333.     -command    ("performSnapshot 1")
  5334.     AnimationSnapshotOptions;
  5335.  
  5336. runTimeCommand -default true
  5337.     -annotation ("Animation Sweep: Select animated curve(s) to copy " +
  5338.                  "over time and then loft into a surface")
  5339.     -category   ("Animate")
  5340.     -command    ("performAnimSweep 0")
  5341.     AnimationSweep;
  5342.  
  5343. runTimeCommand -default true
  5344.     -annotation ("Animation Sweep Options")
  5345.     -category   ("Animate")
  5346.     -command    ("performAnimSweep 1")
  5347.     AnimationSweepOptions;
  5348.  
  5349. //  IK/FK switching
  5350. //
  5351. runTimeCommand -default true
  5352.     -annotation ("Toggle between FK and IK mode for current selection")
  5353.     -category ("Animate")
  5354.     -command "updateIKFKState"
  5355.     ToggleFkIk;
  5356.  
  5357. runTimeCommand -default true
  5358.     -annotation ("Set keys on selected joint chains and handles")
  5359.     -category ("Animate")
  5360.     -command "ikFK(1, `ls -sl`)"
  5361.     SetIKFKKeyframe;
  5362.  
  5363. runTimeCommand -default true
  5364.     -annotation ("Set an object to control IK/FK")
  5365.     -category ("Animate")
  5366.     -command "connectToIKFK()"
  5367.     ConnectNodeToIKFK;
  5368.  
  5369. runTimeCommand -default true
  5370.     -annotation ("Move IK handle to FK joint location")
  5371.     -category ("Animate")
  5372.     -command "moveIKtoFK()"
  5373.     MoveIKtoFK;
  5374.  
  5375. //    Set Key Path.
  5376. //
  5377. runTimeCommand -default true
  5378.     -annotation ("Set Motion Path Key: Select object to key a motion path")
  5379.     -category   ("Animate")
  5380.     -command    ("setKeyPath")
  5381.     SetKeyPath;
  5382.  
  5383. //    Animate object(s) along a path, followed by the path curve.
  5384. //
  5385. runTimeCommand -default true
  5386.     -annotation ("Attach to Motion Path: Select object(s) to animate "
  5387.                 + "along a motion path, followed by the motion path curve")
  5388.     -category   ("Animate")
  5389.     -command    ("performPathAnimation 0")
  5390.     AttachToPath;
  5391.  
  5392. runTimeCommand -default true
  5393.     -annotation ("Attach to Motion Path Options")
  5394.     -category   ("Animate")
  5395.     -command    ("performPathAnimation 1")
  5396.     AttachToPathOptions;
  5397.  
  5398. //    Set object(s) to flow along path
  5399. //
  5400. runTimeCommand -default true
  5401.     -annotation ("Flow Path Object")
  5402.     -category   ("Animate")
  5403.     -command    ("performFlow 0")
  5404.     FlowPathObject;
  5405.  
  5406. runTimeCommand -default true
  5407.     -annotation ("Flow Path Object Options")
  5408.     -category   ("Animate")
  5409.     -command    ("performFlow 1")
  5410.     FlowPathObjectOptions;
  5411.     
  5412. //    Key and Tangent marking menus.
  5413. //
  5414. runTimeCommand -default true
  5415.     -annotation ("Keyframe and Tangent Marking Menu")
  5416.     -category   ("Animate")
  5417.     -command    ("buildKeyframeTangentMM")
  5418.     KeyframeTangentMarkingMenu;
  5419.  
  5420. runTimeCommand -default true
  5421.     -annotation ("Keyframe and Tangent Marking Menu Pop Down")
  5422.     -category   ("Animate")
  5423.     -command    ("MarkingMenuPopDown")
  5424.     KeyframeTangentMarkingMenuPopDown;
  5425.     
  5426. //
  5427. //    Graph Editor Menus.
  5428. //
  5429. // ----------------------------------------------------------------------
  5430.  
  5431. int $performBase = 3;
  5432. string $graphEd = "graphEditor1GraphEd";
  5433. string $selectionConnection = "graphEditor1GraphEd";
  5434. string $options = "useSmoothness bufferCurve";
  5435.  
  5436. //           Graph Editor Edit Menu: 
  5437. //
  5438.  
  5439. runTimeCommand -default true
  5440.     -annotation ("Graph Editor Cut")
  5441.     -category   ("Graph Editor")
  5442.     -command    ("performCutKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\"}") 
  5443.     GraphCut;
  5444.     
  5445. runTimeCommand -default true
  5446.     -annotation ("Graph Editor Cut Options")
  5447.     -category   ("Graph Editor")
  5448.     -command    ("performCutKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\"}") 
  5449.     GraphCutOptions;
  5450.      
  5451. runTimeCommand -default true
  5452.     -annotation ("Graph Editor Copy")
  5453.     -category   ("Graph Editor")
  5454.     -command    ("performCopyKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\"}") 
  5455.     GraphCopy;
  5456.     
  5457. runTimeCommand -default true
  5458.     -annotation ("Graph Editor Copy Options")
  5459.     -category   ("Graph Editor")
  5460.     -command    ("performCopyKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\"}") 
  5461.     GraphCopyOptions;
  5462.     
  5463. runTimeCommand -default true
  5464.     -annotation ("Graph Editor Paste")
  5465.     -category   ("Graph Editor")
  5466.     -command    ("performPasteKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\"}")
  5467.     GraphPaste;
  5468.     
  5469. runTimeCommand -default true
  5470.     -annotation ("Graph Editor Paste Options")
  5471.     -category   ("Graph Editor")
  5472.     -command    ("performPasteKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\"}")
  5473.     GraphPasteOptions;
  5474.     
  5475. runTimeCommand -default true
  5476.     -annotation ("Graph Editor Delete")
  5477.     -category   ("Graph Editor")
  5478.     -command    ("performClearKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"0\", \"1\"}")
  5479.     GraphDelete;
  5480.       
  5481. runTimeCommand -default true
  5482.     -annotation ("Graph Editor Delete Options")
  5483.     -category   ("Graph Editor")
  5484.     -command    ("performClearKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"0\", \"1\"}")
  5485.     GraphDeleteOptions;
  5486.     
  5487. runTimeCommand -default true
  5488.     -annotation ("GraphSnap: Snap keys to integer times")
  5489.     -category   ("Graph Editor")
  5490.     -command ("performSnapKeyArgList 1 { \"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\" }" )
  5491.     GraphSnap;
  5492.  
  5493. runTimeCommand -default true
  5494.     -annotation ("Graph Editor Snap Options")
  5495.     -category   ("Graph Editor")
  5496.     -command ("performSnapKeyArgList 1 { \"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\" }")
  5497.     GraphSnapOptions;
  5498.  
  5499. //        Graph Editor View Menu
  5500. // 
  5501. runTimeCommand -default true
  5502.     -annotation "Toggle Show Buffer Curves"
  5503.     -category   ("Graph Editor")
  5504.     -command    ("animCurveEditor -edit -showBufferCurves tgl " + $graphEd + ";")
  5505.     ToggleShowBufferCurves;
  5506.  
  5507. runTimeCommand -default true
  5508.     -annotation ("Toggle Auto Frame")
  5509.     -category   ("Graph Editor")
  5510.     -command    ( "optionVar -intValue graphEditorAutoFit (!`optionVar -query graphEditorAutoFit`); animCurveEditor -edit -autoFit tgl " + $graphEd + ";" )
  5511.     ToggleAutoFrame;
  5512.  
  5513. runTimeCommand -default true
  5514.     -annotation ("Toggle Show Results")
  5515.     -category   ("Graph Editor")
  5516.     -command ("animCurveEditor -edit -showResults tgl " + $graphEd + ";")
  5517.     ToggleShowResults;
  5518.             
  5519. runTimeCommand -default true
  5520.     -annotation ("Show Results Options")
  5521.     -category   ("Graph Editor")
  5522.     -command ("performShowResults 1 " + $graphEd) 
  5523.     ShowResultsOptions;
  5524.     
  5525.  
  5526. //        Graph Editor Keys Menu
  5527. //
  5528.       
  5529. runTimeCommand -default true
  5530.     -annotation "Break Tangents" 
  5531.     -category   ("Graph Editor")
  5532.     -command ("doKeyTangent \"-lock off\" " + $selectionConnection + " noOptions")
  5533.     BreakTangents;
  5534.     
  5535. runTimeCommand -default true
  5536.     -annotation "Unify Tangents" 
  5537.     -category   ("Graph Editor")
  5538.     -command ("doKeyTangent \"-lock on\" " + $selectionConnection + " noOptions")
  5539.     UnifyTangents;
  5540.  
  5541. runTimeCommand -default true
  5542.     -annotation "Lock Tangent Weight" 
  5543.     -category   ("Graph Editor")
  5544.     -command ("doKeyTangent \"-weightLock on\" " + $selectionConnection + " noOptions")
  5545.     LockTangentWeight;
  5546.     
  5547. runTimeCommand -default true
  5548.     -annotation "Free Tangent Weight" 
  5549.     -category   ("Graph Editor")
  5550.     -command ("doKeyTangent \"-weightLock off\" " + $selectionConnection + " noOptions")
  5551.     FreeTangentWeight;
  5552.  
  5553. runTimeCommand -default true
  5554.     -annotation "ConvertToKey: Convert breakdown to key" 
  5555.     -category   ("Graph Editor")
  5556.     -command ("doKeyEdit \"-breakdown false\" " + $selectionConnection + " noOptions")
  5557.     ConvertToKey;
  5558.     
  5559. runTimeCommand -default true
  5560.     -annotation "ConvertToBreakdown: Convert key to breakdown" 
  5561.     -category   ("Graph Editor")
  5562.     -command ("doKeyEdit \"-breakdown true\" " + $selectionConnection + " noOptions")
  5563.     ConvertToBreakdown;
  5564.  
  5565. runTimeCommand -default true
  5566.     -annotation "AddInbetween: Add an inbetween at the current time." 
  5567.     -category   ("Graph Editor")
  5568.     -command ("doKeyEdit \"\" " + $graphEd + " \"bufferCurve addInbetween\"")
  5569.     AddInbetween;
  5570.     
  5571. runTimeCommand -default true
  5572.     -annotation "RemoveInbetween: Remove inbetween at the current time" 
  5573.     -category   ("Graph Editor")
  5574.     -command ("doKeyEdit \"\" " + $graphEd + " \"bufferCurve removeInbetween\"")
  5575.     RemoveInbetween;
  5576.     
  5577.  
  5578. //         Graph Editor Curves Menu:
  5579. //
  5580.  
  5581. runTimeCommand -default true
  5582.     -annotation "Pre Infinity Cycle"
  5583.     -category   ("Graph Editor")
  5584.     -command ("doSetInfinity \"-pri cycle\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5585.     PreInfinityCycle;
  5586.     
  5587. runTimeCommand -default true
  5588.     -annotation "Pre Infinity Cycle with Offset" 
  5589.     -category   ("Graph Editor")
  5590.     -command ("doSetInfinity \"-pri cycleRelative\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5591.     PreInfinityCycleOffset;
  5592.     
  5593. runTimeCommand -default true
  5594.     -annotation "Pre Infinity Oscillate"
  5595.     -category   ("Graph Editor")
  5596.     -command ("doSetInfinity \"-pri oscillate\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5597.     PreInfinityOscillate;
  5598.     
  5599. runTimeCommand -default true
  5600.     -annotation "Pre Infinity Linear"
  5601.     -category   ("Graph Editor")
  5602.     -command ("doSetInfinity \"-pri linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5603.     PreInfinityLinear;
  5604.     
  5605. runTimeCommand -default true
  5606.     -annotation "Pre Infinity Constant"
  5607.     -category   ("Graph Editor")
  5608.     -command ("doSetInfinity \"-pri constant\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5609.     PreInfinityConstant;
  5610.  
  5611. runTimeCommand -default true
  5612.     -annotation "Post Infinity Cycle"
  5613.     -category   ("Graph Editor")
  5614.     -command ("doSetInfinity \"-poi cycle\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5615.     PostInfinityCycle;
  5616.     
  5617. runTimeCommand -default true
  5618.     -annotation "Post Infinity Cycle with Offset"
  5619.     -category   ("Graph Editor")
  5620.     -command ("doSetInfinity \"-poi cycleRelative\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5621.     PostInfinityCycleOffset;
  5622.     
  5623. runTimeCommand -default true
  5624.     -annotation "Post Infinity Oscillate"
  5625.     -category   ("Graph Editor")
  5626.     -command ("doSetInfinity \"-poi oscillate\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5627.     PostInfinityOscillate;
  5628.     
  5629. runTimeCommand -default true
  5630.     -annotation "Post Infinity Linear"
  5631.     -category   ("Graph Editor")
  5632.     -command ("doSetInfinity \"-poi linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5633.     PostInfinityLinear;
  5634.     
  5635. runTimeCommand -default true
  5636.     -annotation "Post Infinity Constant"
  5637.     -category   ("Graph Editor")
  5638.     -command ("doSetInfinity \"-poi constant\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5639.     PostInfinityConstant;
  5640.  
  5641. runTimeCommand -default true
  5642.     -annotation "Curve Smoothness Coarse"
  5643.     -category   ("Graph Editor")
  5644.     -command ("animCurveEditor -edit -smoothness coarse " + $graphEd) 
  5645.     CurveSmoothnessCoarse;
  5646.         
  5647. runTimeCommand -default true
  5648.     -annotation "Curve Smoothness Rough"
  5649.     -category   ("Graph Editor")
  5650.     -command ("animCurveEditor -edit -smoothness rough " + $graphEd) 
  5651.     CurveSmoothnessRough;
  5652.         
  5653. runTimeCommand -default true
  5654.         -annotation "Curve Smoothness Medium"
  5655.     -category   ("Graph Editor")
  5656.         -command ("animCurveEditor -edit -smoothness medium " + $graphEd) 
  5657.         CurveSmoothnessMedium;
  5658.         
  5659. runTimeCommand -default true
  5660.         -annotation "Curve Smoothness Fine"
  5661.     -category   ("Graph Editor")
  5662.         -command ("animCurveEditor -edit -smoothness fine " + $graphEd) 
  5663.         CurveSmoothnessFine;
  5664.  
  5665. runTimeCommand -default true
  5666.     -annotation "Bake Channel" 
  5667.     -category   ("Graph Editor")
  5668.     -command ("performBakeResults " + $performBase + " " + $selectionConnection) 
  5669.     BakeChannel;
  5670.     
  5671. runTimeCommand -default true
  5672.     -annotation "Bake Channel Options"
  5673.     -category   ("Graph Editor")
  5674.     -command ("performBakeResults " + ($performBase + 1) + " " + $selectionConnection) 
  5675.     BakeChannelOptions;
  5676.    
  5677. runTimeCommand -default true
  5678.     -annotation "Simplify Curve" 
  5679.     -category   ("Graph Editor")
  5680.     -command ("performSimplify " + $performBase + " " + $selectionConnection) 
  5681.     SimplifyCurve;
  5682.  
  5683. runTimeCommand -default true
  5684.     -annotation "Simplify Curve Options" 
  5685.     -category   ("Graph Editor")
  5686.     -command ("performSimplify " + ($performBase + 1) + " " + $selectionConnection) 
  5687.     SimplifyCurveOptions;
  5688.  
  5689. runTimeCommand -default true
  5690.     -annotation "Resample Curve"
  5691.     -category   ("Graph Editor")
  5692.     -command ("performResample " + $performBase + " " + $selectionConnection)
  5693.     ResampleCurve;
  5694.     
  5695. runTimeCommand -default true
  5696.     -annotation "Resample Curve Options"
  5697.     -category   ("Graph Editor")
  5698.     -command ("performResample " + ($performBase + 1) + " " + $selectionConnection)
  5699.     ResampleCurveOptions;
  5700.  
  5701. runTimeCommand -default true
  5702.     -annotation "Buffer Curve Snapshot"
  5703.     -category   ("Graph Editor")
  5704.     -command "bufferCurve -animation \"keys\" -overwrite true"
  5705.     BufferCurveSnapshot;
  5706.         
  5707. runTimeCommand -default true
  5708.     -annotation "Swap Buffer Curve"
  5709.     -category   ("Graph Editor")
  5710.     -command "bufferCurve -animation \"keys\" -swap"
  5711.     SwapBufferCurve;
  5712.     
  5713.  
  5714. runTimeCommand -default true
  5715.     -annotation "Non-weighted Tangents"
  5716.     -category   ("Graph Editor")
  5717.     -command ("doKeyTangent \"-edit -weightedTangents false\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5718.     NonWeightedTangents;
  5719.     
  5720. runTimeCommand -default true
  5721.     -annotation "Weighted Tangents"
  5722.     -category   ("Graph Editor")
  5723.     -command ("doKeyTangent \"-edit -weightedTangents true\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5724.     WeightedTangents;
  5725.     
  5726. //        Graph Editor Tangents Menu:
  5727. //
  5728.  
  5729. runTimeCommand -default true
  5730.     -annotation "Tangents Spline"
  5731.     -category   ("Graph Editor")
  5732.     -command ("doKeyTangent \"-e -itt spline -ott spline\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5733.     TangentsSpline;
  5734.     
  5735. runTimeCommand -default true
  5736.     -annotation "Tangents Linear"
  5737.     -category   ("Graph Editor")
  5738.     -command ("doKeyTangent \"-e -itt linear -ott linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5739.     TangentsLinear;
  5740.     
  5741. runTimeCommand -default true
  5742.     -annotation "Tangents Clamped"
  5743.     -category   ("Graph Editor")
  5744.     -command ("doKeyTangent \"-e -itt clamped -ott clamped\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5745.     TangentsClamped;
  5746.     
  5747. runTimeCommand -default true
  5748.     -annotation "Tangents Stepped"
  5749.     -category   ("Graph Editor")
  5750.     -command ("doKeyTangent \"-e -ott step\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5751.     TangentsStepped;
  5752. runTimeCommand -default true
  5753.  
  5754.     -annotation "Tangents Flat"
  5755.     -category   ("Graph Editor")
  5756.     -command ("doKeyTangent \"-e -itt flat -ott flat\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5757.     TangentsFlat;
  5758.  
  5759. runTimeCommand -default true
  5760.     -annotation "Tangents Fixed"
  5761.     -category   ("Graph Editor")
  5762.     -command ("doKeyTangent \"-e -itt fixed -ott fixed\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5763.     TangentsFixed;
  5764.  
  5765. runTimeCommand -default true
  5766.     -annotation "InTangent Spline"
  5767.     -category   ("Graph Editor")
  5768.     -command ("doKeyTangent \"-e -itt spline\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5769.     InTangentSpline;
  5770.     
  5771. runTimeCommand -default true
  5772.     -annotation "In Tangent Linear"
  5773.     -category   ("Graph Editor")
  5774.     -command ("doKeyTangent \"-e -itt linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5775.     InTangentLinear;
  5776.     
  5777. runTimeCommand -default true
  5778.     -annotation "In Tangent Clamped"
  5779.     -category   ("Graph Editor")
  5780.     -command ("doKeyTangent \"-e -itt clamped\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5781.     InTangentClamped;
  5782.     
  5783. runTimeCommand -default true
  5784.     -annotation "In Tangent Flat"
  5785.     -category   ("Graph Editor")
  5786.     -command ("doKeyTangent \"-e -itt flat\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5787.     InTangentFlat;
  5788.     
  5789. runTimeCommand -default true
  5790.     -annotation "In Tangent Fixed"
  5791.     -category   ("Graph Editor")
  5792.     -command ("doKeyTangent \"-e -itt fixed\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5793.     InTangentFixed;
  5794.  
  5795. runTimeCommand -default true
  5796.     -annotation "Out Tangent Spline"
  5797.     -category   ("Graph Editor")
  5798.     -command ("doKeyTangent \"-e -ott spline\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5799.     OutTangentSpline;
  5800.     
  5801. runTimeCommand -default true
  5802.     -annotation "Out Tangent Linear"
  5803.     -category   ("Graph Editor")
  5804.     -command ("doKeyTangent \"-e -ott linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5805.     OutTangentLinear;
  5806.     
  5807. runTimeCommand -default true
  5808.     -annotation "Out Tangent Clamped"
  5809.     -category   ("Graph Editor")
  5810.     -command ("doKeyTangent \"-e -ott clamped\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5811.     OutTangentClamped;
  5812.     
  5813. runTimeCommand -default true
  5814.     -annotation "Out Tangent Flat"
  5815.     -category   ("Graph Editor")
  5816.     -command ("doKeyTangent \"-e -ott flat\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5817.     OutTangentFlat;
  5818.     
  5819. runTimeCommand -default true
  5820.     -annotation "Out Tangent Fixed"
  5821.     -category   ("Graph Editor")
  5822.     -command ("doKeyTangent \"-e -ott fixed\" " + $selectionConnection + " " + "\"" + $options + "\"")
  5823.     OutTangentFixed;
  5824.  
  5825.  
  5826. //
  5827. //    Deform menu.
  5828. //
  5829. // ----------------------------------------------------------------------
  5830.  
  5831. runTimeCommand -default true
  5832.     -annotation ("Edit Membership Tool")
  5833.     -category   ("Deform")
  5834.     -command    ("setToolTo setEditContext")
  5835.     EditMembershipTool;
  5836.  
  5837. runTimeCommand -default true
  5838.     -annotation ("Prune Cluster")
  5839.     -category   ("Deform")
  5840.     -command    ("cluster -e -pr")
  5841.     PruneCluster;
  5842.  
  5843. runTimeCommand -default true
  5844.     -annotation ("Prune Lattice")
  5845.     -category   ("Deform")
  5846.     -command    ("lattice -e -pr")
  5847.     PruneLattice;
  5848.  
  5849. runTimeCommand -default true
  5850.     -annotation ("Prune Sculpt")
  5851.     -category   ("Deform")
  5852.     -command    ("sculpt -e -pr")
  5853.     PruneSculpt;
  5854.  
  5855. runTimeCommand -default true
  5856.     -annotation ("Prune Wire")
  5857.     -category   ("Deform")
  5858.     -command    ("wire -e -pr")
  5859.     PruneWire;
  5860.  
  5861. runTimeCommand -default true
  5862.     -annotation ("Blend Shape: Select two or more objects. "
  5863.                 + "Select the base shape last")
  5864.     -category   ("Deform")
  5865.     -command    ("performBlendShape 0")
  5866.     CreateBlendShape;
  5867.  
  5868. runTimeCommand -default true
  5869.     -annotation ("Blend Shape Options")
  5870.     -category   ("Deform")
  5871.     -command    ("performBlendShape 1")
  5872.     CreateBlendShapeOptions;
  5873.  
  5874. runTimeCommand -default true
  5875.     -annotation ("Add Blend Shape")
  5876.     -category   ("Deform")
  5877.     -command    ("performBlendShapeAdd 0")
  5878.     AddBlendShape;
  5879.  
  5880. runTimeCommand -default true
  5881.     -annotation ("Add Blend Shape Options")
  5882.     -category   ("Deform")
  5883.     -command    ("performBlendShapeAdd 1")
  5884.     AddBlendShapeOptions;
  5885.  
  5886. runTimeCommand -default true
  5887.     -annotation ("Remove Blend Shape")
  5888.     -category   ("Deform")
  5889.     -command    ("performBlendShapeRemove 0")
  5890.     RemoveBlendShape;
  5891.  
  5892. runTimeCommand -default true
  5893.     -annotation ("Remove Blend Shape Options")
  5894.     -category   ("Deform")
  5895.     -command    ("performBlendShapeRemove 1")
  5896.     RemoveBlendShapeOptions;
  5897.  
  5898. runTimeCommand -default true
  5899.     -annotation ("Swap Blend Shape")
  5900.     -category   ("Deform")
  5901.     -command    ("performBlendShapeSwap 0")
  5902.     SwapBlendShape;
  5903.  
  5904. runTimeCommand -default true
  5905.     -annotation ("Swap Blend Shape Options")
  5906.     -category   ("Deform")
  5907.     -command    ("performBlendShapeSwap 1")
  5908.     SwapBlendShapeOptions;
  5909.  
  5910. runTimeCommand -default true
  5911.     -annotation ("Lattice: Create a lattice for the selected object(s)")
  5912.     -category   ("Deform")
  5913.     -command    ("performLattice false")
  5914.     CreateLattice;
  5915.  
  5916. runTimeCommand -default true
  5917.     -annotation ("Lattice Options")
  5918.     -category   ("Deform")
  5919.     -command    ("performLattice true")
  5920.     CreateLatticeOptions;
  5921.  
  5922. runTimeCommand -default true
  5923.     -annotation ("Reset Lattice")
  5924.     -category   ("Deform")
  5925.     -command    ("lattice -edit -latticeReset")
  5926.     ResetLattice;
  5927.  
  5928. runTimeCommand -default true
  5929.     -annotation ("Remove Lattice Tweaks")
  5930.     -category   ("Deform")
  5931.     -command    ("lattice -edit -removeTweaks")
  5932.     RemoveLatticeTweaks;
  5933.  
  5934. runTimeCommand -default true
  5935.     -annotation ("Cluster")
  5936.     -category   ("Deform")
  5937.     -command    ("performCluster false")
  5938.     CreateCluster;
  5939.  
  5940. runTimeCommand -default true
  5941.     -annotation ("Cluster Options")
  5942.     -category   ("Deform")
  5943.     -command    ("performCluster true")
  5944.     CreateClusterOptions;
  5945.  
  5946. runTimeCommand -default true
  5947.     -annotation ("Nonlinear Bend: Select items to deform")
  5948.     -category   ("Deform")
  5949.     -command    ("performBend 0")
  5950.     Bend;
  5951.  
  5952. runTimeCommand -default true
  5953.     -annotation ("Nonlinear Bend Options")
  5954.     -category   ("Deform")
  5955.     -command    ("performBend 1")
  5956.     BendOptions;
  5957.  
  5958. runTimeCommand -default true
  5959.     -annotation ("Nonlinear Flare: Select items to deform")
  5960.     -category   ("Deform")
  5961.     -command    ("performFlare 0")
  5962.     Flare;
  5963.  
  5964. runTimeCommand -default true
  5965.     -annotation ("Nonlinear Flare Options")
  5966.     -category   ("Deform")
  5967.     -command    ("performFlare 1")
  5968.     FlareOptions;
  5969.  
  5970. runTimeCommand -default true
  5971.     -annotation ("Nonlinear Sine: Select items to deform")
  5972.     -category   ("Deform")
  5973.     -command    ("performSine 0")
  5974.     Sine;
  5975.  
  5976. runTimeCommand -default true
  5977.     -annotation ("Nonlinear Sine Options")
  5978.     -category   ("Deform")
  5979.     -command    ("performSine 1")
  5980.     SineOptions;
  5981.  
  5982. runTimeCommand -default true
  5983.     -annotation ("Nonlinear Squash: Select items to deform")
  5984.     -category   ("Deform")
  5985.     -command    ("performSquash 0")
  5986.     Squash;
  5987.  
  5988. runTimeCommand -default true
  5989.     -annotation ("Nonlinear Squash Options")
  5990.     -category   ("Deform")
  5991.     -command    ("performSquash 1")
  5992.     SquashOptions;
  5993.  
  5994. runTimeCommand -default true
  5995.     -annotation ("Nonlinear Twist: Select items to deform")
  5996.     -category   ("Deform")
  5997.     -command    ("performTwist 0")
  5998.     Twist;
  5999.  
  6000. runTimeCommand -default true
  6001.     -annotation ("Nonlinear Twist Options")
  6002.     -category   ("Deform")
  6003.     -command    ("performTwist 1")
  6004.     TwistOptions;
  6005.  
  6006. runTimeCommand -default true
  6007.     -annotation ("Nonlinear Wave: Select items to deform")
  6008.     -category   ("Deform")
  6009.     -command    ("performWave 0")
  6010.     Wave;
  6011.  
  6012. runTimeCommand -default true
  6013.     -annotation ("Nonlinear Wave Options")
  6014.     -category   ("Deform")
  6015.     -command    ("performWave 1")
  6016.     WaveOptions;
  6017.  
  6018. runTimeCommand -default true
  6019.     -annotation ("Sculpt Deformer: Select object(s)")
  6020.     -category   ("Deform")
  6021.     -command    ("performSculpt false")
  6022.     CreateSculptDeformer;
  6023.  
  6024. runTimeCommand -default true
  6025.     -annotation ("Sculpt Deformer Options")
  6026.     -category   ("Deform")
  6027.     -command    ("performSculpt true")
  6028.     CreateSculptDeformerOptions;
  6029.  
  6030. runTimeCommand -default true
  6031.     -annotation ("Jiggle Deformer")
  6032.     -category   ("Deform")
  6033.     -command    ("performJiggle false")
  6034.     CreateJiggleDeformer;
  6035.  
  6036. runTimeCommand -default true
  6037.     -annotation ("Jiggle Deformer Options")
  6038.     -category   ("Deform")
  6039.     -command    ("performJiggle true")
  6040.     CreateJiggleOptions;
  6041.  
  6042. runTimeCommand -default true
  6043.     -annotation ("Wire Tool: Select object(s), select curve(s)")
  6044.     -category   ("Deform")
  6045.     -command    ("setToolTo wireCtx")
  6046.     WireTool;
  6047.  
  6048. runTimeCommand -default true
  6049.     -annotation ("Wire Tool Options")
  6050.     -category   ("Deform")
  6051.     -command    ("setToolTo wireCtx; toolPropertyWindow")
  6052.     WireToolOptions;
  6053.  
  6054. runTimeCommand -default true
  6055.     -annotation ("Add Wire")
  6056.     -category   ("Deform")
  6057.     -command    ("performWireAdd 0")
  6058.     AddWire;
  6059.  
  6060. runTimeCommand -default true
  6061.     -annotation ("Add Wire Options")
  6062.     -category   ("Deform")
  6063.     -command    ("performWireAdd 1")
  6064.     AddWireOptions;
  6065.  
  6066. runTimeCommand -default true
  6067.     -annotation ("Remove Wire")
  6068.     -category   ("Deform")
  6069.     -command    ("performWireRemove 0")
  6070.     RemoveWire;
  6071.  
  6072. runTimeCommand -default true
  6073.     -annotation ("Remove Wire Options")
  6074.     -category   ("Deform")
  6075.     -command    ("performWireRemove 1")
  6076.     RemoveWireOptions;
  6077.  
  6078. runTimeCommand -default true
  6079.     -annotation ("Add Holder")
  6080.     -category   ("Deform")
  6081.     -command    ("performWireAddHolder 0")
  6082.     AddHolder;
  6083.  
  6084. runTimeCommand -default true
  6085.     -annotation ("Add Holder Options")
  6086.     -category   ("Deform")
  6087.     -command    ("performWireAddHolder 1")
  6088.     AddHolderOptions;
  6089.  
  6090. runTimeCommand -default true
  6091.     -annotation ("Reset Wire")
  6092.     -category   ("Deform")
  6093.     -command    ("performWireReset 0")
  6094.     ResetWire;
  6095.  
  6096. runTimeCommand -default true
  6097.     -annotation ("Reset Wire Options")
  6098.     -category   ("Deform")
  6099.     -command    ("performWireReset 1")
  6100.     ResetWireOptions;
  6101.  
  6102. runTimeCommand -default true
  6103.     -annotation ("Parent Base Wire")
  6104.     -category   ("Deform")
  6105.     -command    ("performWireParentBase 0")
  6106.     ParentBaseWire;
  6107.  
  6108. runTimeCommand -default true
  6109.     -annotation ("Show Base Wire")
  6110.     -category   ("Deform")
  6111.     -command    ("doWireEdit 6 0 \"\"")
  6112.     ShowBaseWire;
  6113.  
  6114. runTimeCommand -default true
  6115.     -annotation ("Parent Base Wire Options")
  6116.     -category   ("Deform")
  6117.     -command    ("performWireParentBase 1")
  6118.     ParentBaseWireOptions;
  6119.  
  6120. runTimeCommand -default true
  6121.     -annotation ("Wire Dropoff Locator")
  6122.     -category   ("Deform")
  6123.     -command    ("performDropoffLocator 0")
  6124.     WireDropoffLocator;
  6125.  
  6126. runTimeCommand -default true
  6127.     -annotation ("Wire Dropoff Locator Options")
  6128.     -category   ("Deform")
  6129.     -command    ("performDropoffLocator 1")
  6130.     WireDropoffLocatorOptions;
  6131.  
  6132. runTimeCommand -default true
  6133.     -annotation ("Wrinkle Tool")
  6134.     -category   ("Deform")
  6135.     -command    ("setToolTo wrinkleCtx")
  6136.     WrinkleTool;
  6137.  
  6138. runTimeCommand -default true
  6139.     -annotation ("Wrinkle Tool Options")
  6140.     -category   ("Deform")
  6141.     -command    ("setToolTo wrinkleCtx; toolPropertyWindow")
  6142.     WrinkleToolOptions;
  6143.  
  6144. runTimeCommand -default true
  6145.     -annotation ("Wrap: Select surfaces and an influence object")
  6146.     -category   ("Deform")
  6147.     -command    ("performCreateWrap false")
  6148.     CreateWrap;
  6149.  
  6150. runTimeCommand -default true
  6151.     -annotation ("Wrap Options")
  6152.     -category   ("Deform")
  6153.     -command    ("performCreateWrap true")
  6154.     CreateWrapOptions;
  6155.  
  6156. runTimeCommand -default true
  6157.     -annotation ("Add Wrap Influence")
  6158.     -category   ("Deform")
  6159.     -command    ("performWrap 2")
  6160.     AddWrapInfluence;
  6161.  
  6162. runTimeCommand -default true
  6163.     -annotation ("Remove Wrap Influence")
  6164.     -category   ("Deform")
  6165.     -command    ("performWrap 3")
  6166.     RemoveWrapInfluence;
  6167.  
  6168. runTimeCommand -default true
  6169.     -annotation ("Display Intermediate Objects")
  6170.     -category   ("Deform")
  6171.     -command    ("displayInterObjects 0")
  6172.     DisplayIntermediateObjects;
  6173.  
  6174. runTimeCommand -default true
  6175.     -annotation ("Hide Intermediate Objects")
  6176.     -category   ("Deform")
  6177.     -command    ("displayInterObjects 1")
  6178.     HideIntermediateObjects;
  6179.  
  6180. runTimeCommand -default true
  6181.     -annotation ("Paint Set Membership Tool")
  6182.     -category   ("Deform")
  6183.     -command    ("setEditPaintToolScript 4")
  6184.     PaintSetMembershipTool;
  6185.  
  6186. runTimeCommand -default true
  6187.     -annotation ("Paint Set Membership Tool Options")
  6188.     -category   ("Deform")
  6189.     -command    ("setEditPaintToolScript 3")
  6190.     PaintSetMembershipToolOptions;
  6191.  
  6192. runTimeCommand -default true
  6193.     -annotation ("Point On Curve")
  6194.     -category   ("Deform")
  6195.     -command    ("performPointCurveConstraint 0")
  6196.     PointOnCurve;
  6197.  
  6198. runTimeCommand -default true
  6199.     -annotation ("Point On Curve Options")
  6200.     -category   ("Deform")
  6201.     -command    ("performPointCurveConstraint(1)")
  6202.     PointOnCurveOptions;
  6203.  
  6204. //
  6205. //    Skeleton menu.
  6206. //
  6207. // ----------------------------------------------------------------------
  6208.  
  6209. runTimeCommand -default true
  6210.     -annotation ("Joint Tool: Click to place joint. Click on existing "
  6211.                 + "joint to add to skeleton. Click + drag to position joint.")
  6212.     -category   ("Skeleton")
  6213.     -command    ("setToolTo jointContext")
  6214.     JointTool;
  6215.  
  6216. runTimeCommand -default true
  6217.     -annotation ("Joint Tool Options")
  6218.     -category   ("Skeleton")
  6219.     -command    ("setToolTo jointContext; toolPropertyWindow")
  6220.     JointToolOptions;
  6221.  
  6222. runTimeCommand -default true
  6223.     -annotation ("IK Handle Tool: Create IK handle on joint chain")
  6224.     -category   ("Skeleton")
  6225.     -command    ("setToolTo ikHandleContext")
  6226.     IKHandleTool;
  6227.  
  6228. runTimeCommand -default true
  6229.     -annotation ("IK Handle Tool Options")
  6230.     -category   ("Skeleton")
  6231.     -command    ("setToolTo ikHandleContext; toolPropertyWindow")
  6232.     IKHandleToolOptions;
  6233.  
  6234. runTimeCommand -default true
  6235.     -annotation ("IK Spline Handle Tool: Create IK spline handle on joint chain")
  6236.     -category   ("Skeleton")
  6237.     -command    ("setToolTo ikSplineHandleContext")
  6238.     IKSplineHandleTool;
  6239.  
  6240. runTimeCommand -default true
  6241.     -annotation ("IK Spline Handle Tool Options")
  6242.     -category   ("Skeleton")
  6243.     -command    ("setToolTo ikSplineHandleContext; toolPropertyWindow")
  6244.     IKSplineHandleToolOptions;
  6245.  
  6246. runTimeCommand -default true
  6247.     -annotation ("Insert Joint Tool")
  6248.     -category   ("Skeleton")
  6249.     -command    ("setToolTo insertJointContext")
  6250.     InsertJointTool;
  6251.  
  6252. runTimeCommand -default true
  6253.     -annotation ("Reroot Skeleton: Select a joint")
  6254.     -category   ("Skeleton")
  6255.     -command    ("reroot")
  6256.     RerootSkeleton;
  6257.  
  6258. runTimeCommand -default true
  6259.     -annotation ("Remove Joint: Select a joint")
  6260.     -category   ("Skeleton")
  6261.     -command    ("removeJoint")
  6262.     RemoveJoint;
  6263.  
  6264. runTimeCommand -default true
  6265.     -annotation ("Disconnect Joint: Select a joint")
  6266.     -category   ("Skeleton")
  6267.     -command    ("disconnectJoint -deleteHandleMode")
  6268.     DisconnectJoint;
  6269.  
  6270. runTimeCommand -default true
  6271.     -annotation ("Connect Joint: Select two joints")
  6272.     -category   ("Skeleton")
  6273.     -command    ("performConnectJoint 0")
  6274.     ConnectJoint;
  6275.  
  6276. runTimeCommand -default true
  6277.     -annotation ("Connect Joint Options")
  6278.     -category   ("Skeleton")
  6279.     -command    ("performConnectJoint 1")
  6280.     ConnectJointOptions;
  6281.  
  6282. runTimeCommand -default true
  6283.     -annotation ("Mirror Joint: Select a joint")
  6284.     -category   ("Skeleton")
  6285.     -command    ("performMirrorJoint 0")
  6286.     MirrorJoint;
  6287.  
  6288. runTimeCommand -default true
  6289.     -annotation ("Mirror Joint Options")
  6290.     -category   ("Skeleton")
  6291.     -command    ("performMirrorJoint 1")
  6292.     MirrorJointOptions;
  6293.  
  6294. runTimeCommand -default true
  6295.     -annotation ("Orient Joint: Select a joint")
  6296.     -category   ("Skeleton")
  6297.     -command    ("performJointOrient 0")
  6298.     OrientJoint;
  6299.  
  6300. runTimeCommand -default true
  6301.     -annotation ("Orient Joint Options")
  6302.     -category   ("Skeleton")
  6303.     -command    ("performJointOrient 1")
  6304.     OrientJointOptions;
  6305.  
  6306. runTimeCommand -default true
  6307.     -annotation ("Set Preferred Angle")
  6308.     -category   ("Skeleton")
  6309.     -command    ("performSetPrefAngle 0")
  6310.     SetPreferredAngle;
  6311.  
  6312. runTimeCommand -default true
  6313.     -annotation ("Set Preferred Angle Options")
  6314.     -category   ("Skeleton")
  6315.     -command    ("performSetPrefAngle 1")
  6316.     SetPreferredAngleOptions;
  6317.  
  6318. runTimeCommand -default true
  6319.     -annotation ("Assume Preferred Angle")
  6320.     -category   ("Skeleton")
  6321.     -command    ("performAssumePrefAngle 0")
  6322.     AssumePreferredAngle;
  6323.  
  6324. runTimeCommand -default true
  6325.     -annotation ("Assume Preferred Angle Options")
  6326.     -category   ("Skeleton")
  6327.     -command    ("performAssumePrefAngle 1")
  6328.     AssumePreferredAngleOptions;
  6329.  
  6330. runTimeCommand -default true
  6331.     -annotation ("Toggle IK Solvers")
  6332.     -category   ("Skeleton")
  6333.     -command    ("ikSystem -e -sol (!`ikSystem -q -sol`)")
  6334.     ToggleIKSolvers;
  6335.  
  6336. runTimeCommand -default true
  6337.     -annotation ("Toggle IK Handle Snap")
  6338.     -category   ("Skeleton")
  6339.     -command    ("ikSystem -e -sn (!`ikSystem -q -sn`)")
  6340.     ToggleIKHandleSnap;
  6341.  
  6342. runTimeCommand -default true
  6343.     -annotation ("Toggle IK Handle Allow Rotation")
  6344.     -category    ("Skeleton")
  6345.     -command    ("ikSystem -e -allowRotation (!`ikSystem -q -allowRotation`); menuItem -e -enable (!`ikSystem -q -allowRotation`) globalSnapEnableItem")
  6346.     ToggleIKAllowRotation;
  6347.  
  6348. runTimeCommand -default true
  6349.     -annotation ("Enable Selected IK Handles")
  6350.     -category   ("Skeleton")
  6351.     -command    ("ikHandle -e -eh")
  6352.     EnableSelectedIKHandles;
  6353.  
  6354. runTimeCommand -default true
  6355.     -annotation ("Disable Selected IK Handles")
  6356.     -category   ("Skeleton")
  6357.     -command    ("ikHandle -e -dh")
  6358.     DisableSelectedIKHandles;
  6359.  
  6360. //
  6361. //    Skin menu.
  6362. //
  6363. // ----------------------------------------------------------------------
  6364.  
  6365. runTimeCommand -default true
  6366.     -annotation ("Smooth Bind Skin: Select surface(s) and a joint")
  6367.     -category   ("Skin")
  6368.     -command    ("performSkinCluster false")
  6369.     SmoothBindSkin;
  6370.  
  6371. runTimeCommand -default true
  6372.     -annotation ("Smooth Bind Skin Options")
  6373.     -category   ("Skin")
  6374.     -command    ("performSkinCluster true")
  6375.     SmoothBindSkinOptions;
  6376.  
  6377. runTimeCommand -default true
  6378.     -annotation ("Rigid Bind Skin")
  6379.     -category   ("Skin")
  6380.     -command    ("performBindSkin false")
  6381.     RigidBindSkin;
  6382.  
  6383. runTimeCommand -default true
  6384.     -annotation ("Rigid Bind Skin Options")
  6385.     -category   ("Skin")
  6386.     -command    ("performBindSkin true")
  6387.     RigidBindSkinOptions;
  6388.  
  6389. runTimeCommand -default true
  6390.     -annotation ("Detach Skin")
  6391.     -category   ("Skin")
  6392.     -command    ("performDetachSkin false")
  6393.     DetachSkin;
  6394.  
  6395. runTimeCommand -default true
  6396.     -annotation ("Detach Skin Options")
  6397.     -category   ("Skin")
  6398.     -command    ("performDetachSkin true")
  6399.     DetachSkinOptions;
  6400.  
  6401. runTimeCommand -default true
  6402.     -annotation ("Go to Bind Pose")
  6403.     -category   ("Skin")
  6404.     -command    ("evalEcho(\"gotoBindPose\")")
  6405.     GoToBindPose;
  6406.  
  6407. runTimeCommand -default true
  6408.     -annotation ("Add Influence")
  6409.     -category   ("Skin")
  6410.     -command    ("performAddInfluence false")
  6411.     AddInfluence;
  6412.  
  6413. runTimeCommand -default true
  6414.     -annotation ("Add Influence Options")
  6415.     -category   ("Skin")
  6416.     -command    ("performAddInfluence true")
  6417.     AddInfluenceOptions;
  6418.  
  6419. runTimeCommand -default true
  6420.     -annotation ("Remove Influence")
  6421.     -category   ("Skin")
  6422.     -command    ("skinClusterInfluence(2,\"\")")
  6423.     RemoveInfluence;
  6424.  
  6425. runTimeCommand -default true
  6426.     -annotation ("Set Max Influences: Display dialog to set max influences")
  6427.     -category   ("Skin")
  6428.     -command    ("performMaxInfluences true")
  6429.     SetMaxInfluences;
  6430.  
  6431. runTimeCommand -default true
  6432.     -annotation ("Reset Weights to Default")
  6433.     -category   ("Skin")
  6434.     -command    ("performResetToDefault")
  6435.     ResetWeightsToDefault;
  6436.  
  6437. runTimeCommand -default true
  6438.     -annotation ("Mirror Skin Weights: Select either a single skin "
  6439.                 + "or the source and the destination skin")
  6440.     -category   ("Skin")
  6441.     -command    ("performMirrorSkinWeights false")
  6442.     MirrorSkinWeights;
  6443.  
  6444. runTimeCommand -default true
  6445.     -annotation ("Mirror Skin Weights Options")
  6446.     -category   ("Skin")
  6447.     -command    ("performMirrorSkinWeights true")
  6448.     MirrorSkinWeightsOptions;
  6449.  
  6450. runTimeCommand -default true
  6451.     -annotation ("Copy Skin Weights: Select the source surface and "
  6452.                 + "the destination surface")
  6453.     -category   ("Skin")
  6454.     -command    ("performCopySkinWeights false")
  6455.     CopySkinWeights;
  6456.  
  6457. runTimeCommand -default true
  6458.     -annotation ("Prune Small Weights")
  6459.     -category   ("Skin")
  6460.     -command    ("performPruneWeights false")
  6461.     PruneSmallWeights;
  6462.  
  6463. runTimeCommand -default true
  6464.     -annotation ("Prune Small Weights Options")
  6465.     -category   ("Skin")
  6466.     -command    ("performPruneWeights true")
  6467.     PruneSmallWeightsOptions;
  6468.  
  6469. runTimeCommand -default true
  6470.     -annotation ("Export Skin Weight Maps: Select smooth bound skins")
  6471.     -category   ("Skin")
  6472.     -command    ("performExportSkinMap 0")
  6473.     ExportSkinWeightMaps;
  6474.  
  6475. runTimeCommand -default true
  6476.     -annotation ("Export Skin Weight Maps Options")
  6477.     -category   ("Skin")
  6478.     -command    ("performExportSkinMap 1")
  6479.     ExportSkinWeightMapsOptions;
  6480.  
  6481. runTimeCommand -default true
  6482.     -annotation ("Import Skin Weight Maps: Select smooth bound skins")
  6483.     -category   ("Skin")
  6484.     -command    ("importSkinMap 1 {}")
  6485.     ImportSkinWeightMaps;
  6486.  
  6487. runTimeCommand -default true
  6488.     -annotation ("Paint Skin Weights Tool: Paint weights on smooth bound skins")
  6489.     -category   ("Skin")
  6490.     -command    ("artAttrSkinToolScript 4 ")
  6491.     ArtPaintSkinWeightsTool;
  6492.  
  6493. runTimeCommand -default true
  6494.     -annotation ("Paint Skin Weights Tool Options")
  6495.     -category   ("Skin")
  6496.     -command    ("artAttrSkinToolScript 3 ")
  6497.     ArtPaintSkinWeightsToolOptions;
  6498.  
  6499. runTimeCommand -default true
  6500.     -annotation ("Create Flexor: Open CreateFlexor Window")
  6501.     -category   ("Window")
  6502.     -command    ("createFlexorWin")
  6503.     CreateFlexorWindow;
  6504.  
  6505. runTimeCommand -default true
  6506.     -annotation ("Copy Flexor")
  6507.     -category   ("Skin")
  6508.     -command    ("copyFlexor")
  6509.     CopyFlexor;
  6510.  
  6511. runTimeCommand -default true
  6512.     -annotation ("Reassign Bone Lattice Joint")
  6513.     -category   ("Skin")
  6514.     -command    ("setNewBoneFlexorJoint")
  6515.     ReassignBoneLatticeJoint;
  6516.  
  6517. runTimeCommand -default true
  6518.     -annotation ("Detach Skeleton")
  6519.     -category   ("Skin")
  6520.     -command    ("bindSkin -enable 0")
  6521.     DetachSkeleton;
  6522.  
  6523. runTimeCommand -default true
  6524.     -annotation ("Detach Skeleton Joint")
  6525.     -category   ("Skin")
  6526.     -command    ("bindSkin -enable 0 -tsb")
  6527.     DetachSkeletonJoints;
  6528.  
  6529. runTimeCommand -default true
  6530.     -annotation ("Reattach Skeleton")
  6531.     -category   ("Skin")
  6532.     -command    ("bindSkin -enable 1")
  6533.     ReattachSkeleton;
  6534.  
  6535. runTimeCommand -default true
  6536.     -annotation ("Reattach Skeleton Joint")
  6537.     -category   ("Skin")
  6538.     -command    ("bindSkin -enable 1 -tsb")
  6539.     ReattachSkeletonJoints;
  6540.  
  6541. //
  6542. //    Constrain menu.
  6543. //
  6544. // ----------------------------------------------------------------------
  6545.  
  6546. runTimeCommand -default true
  6547.     -annotation ("Point Constraint: Select one or more targets followed "
  6548.                 + "by the object to constrain")
  6549.     -category   ("Constrain")
  6550.     -command    ("performPointConstraint 0")
  6551.     PointConstraint;
  6552.  
  6553. runTimeCommand -default true
  6554.     -annotation ("Point Constraint Options")
  6555.     -category   ("Constrain")
  6556.     -command    ("performPointConstraint 1")
  6557.     PointConstraintOptions;
  6558.  
  6559. runTimeCommand -default true
  6560.     -annotation ("Aim Constraint: Select one or more targets followed "
  6561.                 + "by the object to constrain")
  6562.     -category   ("Constrain")
  6563.     -command    ("performAimConstraint 0")
  6564.     AimConstraint;
  6565.  
  6566. runTimeCommand -default true
  6567.     -annotation ("Aim Constraint Options")
  6568.     -category   ("Constrain")
  6569.     -command    ("performAimConstraint 1")
  6570.     AimConstraintOptions;
  6571.  
  6572. runTimeCommand -default true
  6573.     -annotation ("Orient Constraint: Select one or more targets followed "
  6574.                 + "by the object to constrain")
  6575.     -category   ("Constrain")
  6576.     -command    ("performOrientConstraint 0")
  6577.     OrientConstraint;
  6578.  
  6579. runTimeCommand -default true
  6580.     -annotation ("Orient Constraint Options")
  6581.     -category   ("Constrain")
  6582.     -command    ("performOrientConstraint 1")
  6583.     OrientConstraintOptions;
  6584.  
  6585. runTimeCommand -default true
  6586.     -annotation ("Scale Constraint")
  6587.     -category   ("Constrain")
  6588.     -command    ("performScaleConstraint 0")
  6589.     ScaleConstraint;
  6590.  
  6591. runTimeCommand -default true
  6592.     -annotation ("Scale Constraint Options")
  6593.     -category   ("Constrain")
  6594.     -command    ("performScaleConstraint 1")
  6595.     ScaleConstraintOptions;
  6596.  
  6597. runTimeCommand -default true
  6598.     -annotation ("Parent Constraint: Select one or more targets followed "
  6599.                 + "by the object to constrain")
  6600.     -category   ("Constrain")
  6601.     -command    ("performParentConstraint 0")
  6602.     ParentConstraint;
  6603.  
  6604. runTimeCommand -default true
  6605.     -annotation ("Parent Constraint Options")
  6606.     -category   ("Constrain")
  6607.     -command    ("performParentConstraint 1")
  6608.     ParentConstraintOptions;
  6609.  
  6610. runTimeCommand -default true
  6611.     -annotation ("Geometry Constraint")
  6612.     -category   ("Constrain")
  6613.     -command    ("performGeometryConstraint 0")
  6614.     GeometryConstraint;
  6615.  
  6616. runTimeCommand -default true
  6617.     -annotation ("Geometry Constraint Options")
  6618.     -category   ("Constrain")
  6619.     -command    ("performGeometryConstraint 1")
  6620.     GeometryConstraintOptions;
  6621.  
  6622. runTimeCommand -default true
  6623.     -annotation ("Normal Constraint")
  6624.     -category   ("Constrain")
  6625.     -command    ("performNormalConstraint 0")
  6626.     NormalConstraint;
  6627.  
  6628. runTimeCommand -default true
  6629.     -annotation ("Normal Constraint Options")
  6630.     -category   ("Constrain")
  6631.     -command    ("performNormalConstraint 1")
  6632.     NormalConstraintOptions;
  6633.  
  6634. runTimeCommand -default true
  6635.     -annotation ("Tanget Constraint")
  6636.     -category   ("Constrain")
  6637.     -command    ("performTangentConstraint 0")
  6638.     TangetConstraint;
  6639.  
  6640. runTimeCommand -default true
  6641.     -annotation ("Tanget Constraint Options")
  6642.     -category   ("Constrain")
  6643.     -command    ("performTangentConstraint 1")
  6644.     TangetConstraintOptions;
  6645.  
  6646. runTimeCommand -default true
  6647.     -annotation ("Pole Vector Constraint")
  6648.     -category   ("Constrain")
  6649.     -command    ("performPoleVectorConstraint 0")
  6650.     PoleVectorConstraint;
  6651.  
  6652. runTimeCommand -default true
  6653.     -annotation ("Pole Vector Constraint Options")
  6654.     -category   ("Constrain")
  6655.     -command    ("performPoleVectorConstraint 1")
  6656.     PoleVectorConstraintOptions;
  6657.  
  6658. runTimeCommand -default true
  6659.     -annotation ("Remove Constraint Target")
  6660.     -category   ("Constrain")
  6661.     -command    ("performRemoveConstraintTarget 0")
  6662.     RemoveConstraintTarget;
  6663.  
  6664. runTimeCommand -default true
  6665.     -annotation ("Remove Constraint Target Options")
  6666.     -category   ("Constrain")
  6667.     -command    ("performRemoveConstraintTarget 1")
  6668.     RemoveConstraintTargetOptions;
  6669.  
  6670. runTimeCommand -default true
  6671.     -annotation ("Modify Constraint Axis")
  6672.     -category   ("Constrain")
  6673.     -command    ("performModifyConstraintAxes 0")
  6674.     ModifyConstraintAxis;
  6675.  
  6676. runTimeCommand -default true
  6677.     -annotation ("Modify Constraint Axis Options")
  6678.     -category   ("Constrain")
  6679.     -command    ("performModifyConstraintAxes 1")
  6680.     ModifyConstraintAxisOptions;
  6681.  
  6682. //
  6683. //    Character menu.
  6684. //
  6685. // ----------------------------------------------------------------------
  6686.  
  6687. runTimeCommand -default true
  6688.     -annotation ("Create a Character")
  6689.     -category   ("Character")
  6690.     -command    ("performCreateCharacter 0")
  6691.     CreateCharacter;
  6692.  
  6693. runTimeCommand -default true
  6694.     -annotation ("Create a Character Options")
  6695.     -category   ("Character")
  6696.     -command    ("performCreateCharacter 1")
  6697.     CreateCharacterOptions;
  6698.  
  6699. runTimeCommand -default true
  6700.     -annotation ("Edit character attributes")
  6701.     -category   ("Character")
  6702.     -command    ("editCurrentCharAttrs()")
  6703.     EditCharacterAttributes;
  6704.  
  6705. runTimeCommand -default true
  6706.     -annotation ("Clear current character list")
  6707.     -category   ("Character")
  6708.     -command    ("setCurrentCharacters( {} )")
  6709.     ClearCurrentCharacterList;
  6710. }
  6711. animationMenus();
  6712.  
  6713. // ======================================================================
  6714. // ======================================================================
  6715. //
  6716. //    Dynamics menu set, ie. Particles, Fields, Soft/Rigid Bodies, 
  6717. //    Effects, and Solvers.
  6718. //
  6719. // ======================================================================
  6720. // ======================================================================
  6721. proc particleMenus() {
  6722. //
  6723. //    Particles menu.
  6724. //
  6725. // ----------------------------------------------------------------------
  6726.  
  6727. runTimeCommand -default true
  6728.     -annotation ("Particle Tool: Create particles on the grid " +
  6729.                  "or live object")
  6730.     -category   ("Particles")
  6731.     -command    ("setToolTo dynParticleContext")
  6732.     ParticleTool;
  6733.  
  6734. runTimeCommand -default true
  6735.     -annotation ("Particle Tool Options")
  6736.     -category   ("Particles")
  6737.     -command    ("setToolTo dynParticleContext; toolPropertyWindow")
  6738.     ParticleToolOptions;
  6739.  
  6740. runTimeCommand -default true
  6741.     -annotation ("Emitter: Create an emitter on the grid " +
  6742.                  "or live object")
  6743.     -category   ("Particles")
  6744.     -command    ("performDynamics 1 Emitter 0")
  6745.     CreateEmitter;
  6746.  
  6747. runTimeCommand -default true
  6748.     -annotation ("Create Emitter Options")
  6749.     -category   ("Particles")
  6750.     -command    ("performDynamics 1 Emitter 1")
  6751.     CreateEmitterOptions;
  6752.  
  6753. runTimeCommand -default true
  6754.     -annotation ("Add Emitter: Select the object(s) to emit particles")
  6755.     -category   ("Particles")
  6756.     -command    ("performDynamics 0 Emitter 0")
  6757.     EmitFromObject;
  6758.  
  6759. runTimeCommand -default true
  6760.     -annotation ("Add Emitter Options")
  6761.     -category   ("Particles")
  6762.     -command    ("performDynamics 0 Emitter 1")
  6763.     EmitFromObjectOptions;
  6764.  
  6765. runTimeCommand -default true
  6766.     -annotation ("Use Selected Emitter: Select particle " +
  6767.                  "object(s), then select emitter to create " +
  6768.                  "particles for them")
  6769.     -category   ("Particles")
  6770.     -command    ("performDynamicsConnect 2")
  6771.     UseSelectedEmitter;
  6772.  
  6773. runTimeCommand -default true
  6774.     -annotation ("Per-Point Emission Rates: Enable per-point " +
  6775.                  "rates for selected emitter")
  6776.     -category   ("Particles")
  6777.     -command    ("addPP -atr rate")
  6778.     PerPointEmissionRates;
  6779.  
  6780. runTimeCommand -default true
  6781.     -annotation ("Make Collide: Select particle object, then " +
  6782.                  "select one geometry object to collide with")
  6783.     -category   ("Particles")
  6784.     -command    ("performDynamics 0 Collision 0")
  6785.     MakeCollide;
  6786.  
  6787. runTimeCommand -default true
  6788.     -annotation ("Make Collide Options")
  6789.     -category   ("Particles")
  6790.     -command    ("performDynamics 0 Collision 1")
  6791.     MakeCollideOptions;
  6792.  
  6793. runTimeCommand -default true
  6794.     -annotation ("Particle Collision Events: Display Collision " +
  6795.                  "Events Editor")
  6796.     -category   ("Particles")
  6797.     -command    ("eventEdWin")
  6798.     ParticleCollisionEvents;
  6799.  
  6800. runTimeCommand -default true
  6801.     -annotation ("Goal: Select first the particle and then the " +
  6802.                  "goal object")
  6803.     -category   ("Particles")
  6804.     -command    ("performDynamics 0 Goal 0")
  6805.     Goal;
  6806.  
  6807. runTimeCommand -default true
  6808.     -annotation ("Goal Options")
  6809.     -category   ("Particles")
  6810.     -command    ("performDynamics 0 Goal 1")
  6811.     GoalOptions;
  6812.  
  6813. runTimeCommand -default true
  6814.     -annotation ("Particle Instancer: Select first the replacement " +
  6815.                  "objects and then the particle")
  6816.     -category   ("Particles")
  6817.     -command    ("performDynamics 0 ParticleInstancer 0")
  6818.     ParticleInstancer;
  6819.  
  6820. runTimeCommand -default true
  6821.     -annotation ("Particle Instancer Options")
  6822.     -category   ("Particles")
  6823.     -command    ("performDynamics 1 ParticleInstancer 1")
  6824.     ParticleInstancerOptions;
  6825.  
  6826. runTimeCommand -default true
  6827.     -annotation ("Connect to Time: Select particle shape")
  6828.     -category   ("Particles")
  6829.     -command    ("dynConnectToTime")
  6830.     ConnectToTime;
  6831.  
  6832. //
  6833. // Fluids menu
  6834. //
  6835. // ----------------------------------------------------------------------
  6836.  
  6837. // These commands are not available in Maya Complete, and
  6838. // while their appearance (without being available) in the
  6839. // Hotkey Editor Categories can be viewed as a "teaser" on
  6840. // other platforms, Maya Unlimited isn't even available on
  6841. // the Mac, so therefore we hide them.
  6842. //
  6843. if( !`about -mac` ) {
  6844.     runTimeCommand -default true
  6845.         -annotation ("3D Fluid Container: Create a 3D fluid container")
  6846.         -category   ("Fluid Effects")
  6847.         -command    ("performFluids 1 Create3DFluid 0")
  6848.         Create3DContainer;
  6849.  
  6850.     runTimeCommand -default true
  6851.         -annotation ("3D Fluid Container Options")
  6852.         -category   ("Fluid Effects")
  6853.         -command    ("performFluids 1 Create3DFluid 3")
  6854.         Create3DContainerOptions;
  6855.  
  6856.     runTimeCommand -default true
  6857.         -annotation ("2D Fluid Container: Create a 2D fluid container")
  6858.         -category   ("Fluid Effects")
  6859.         -command    ("performFluids 1 Create2DFluid 0")
  6860.         Create2DContainer;
  6861.  
  6862.     runTimeCommand -default true
  6863.         -annotation ("2D Fluid Container Options")
  6864.         -category   ("Fluid Effects")
  6865.         -command    ("performFluids 1 Create2DFluid 3")
  6866.         Create2DContainerOptions;
  6867.  
  6868.     runTimeCommand -default true
  6869.         -annotation ("Create an emitter and a 3D fluid container")
  6870.         -category   ("Fluid Effects")
  6871.         -command    ("performFluids 1 3DFluidAndEmitter 0")
  6872.         Create3DContainerEmitter;
  6873.  
  6874.     runTimeCommand -default true
  6875.         -annotation ("Create 3D Container with Emitter Options")
  6876.         -category   ("Fluid Effects")
  6877.         -command    ("performFluids 1 3DFluidAndEmitter 3")
  6878.         Create3DContainerEmitterOptions;
  6879.  
  6880.     runTimeCommand -default true
  6881.         -annotation ("Create an emitter and a 2D fluid container")
  6882.         -category   ("Fluid Effects")
  6883.         -command    ("performFluids 1 2DFluidAndEmitter 0")
  6884.         Create2DContainerEmitter;
  6885.  
  6886.     runTimeCommand -default true
  6887.         -annotation ("Create 2D Container with Emitter Options")
  6888.         -category   ("Fluid Effects")
  6889.         -command    ("performFluids 1 2DFluidAndEmitter 3")
  6890.         Create2DContainerEmitterOptions;
  6891.  
  6892.     runTimeCommand -default true
  6893.         -annotation ("Emit Fluid from Object: Select a fluid and the emitting object(s)")
  6894.         -category   ("Fluid Effects")
  6895.         -command    ("performFluids 0 FluidEmitFromObject 0")
  6896.         EmitFluidFromObject;
  6897.  
  6898.     runTimeCommand -default true
  6899.         -annotation ("Emit from Object Options")
  6900.         -category   ("Fluid Effects")
  6901.         -command    ("performFluids 0 FluidEmitFromObject 3")
  6902.         EmitFluidFromObjectOptions;
  6903.  
  6904.     runTimeCommand -default true
  6905.         -annotation ("Browse examples to import...")
  6906.         -category   ("Fluid Effects")
  6907.         -command    ("{VisorWindow;string $pnl=visorPanelName();if(size($pnl)>0) visorPanelMenuCommand( $pnl, \"selectOrCreateTabByLabel Fluid Examples\");}")
  6908.         GetFluidExample;
  6909.  
  6910.     runTimeCommand -default true
  6911.         -annotation ("Browse ocean and pond examples to import...")
  6912.         -category   ("Fluid Effects")
  6913.         -command    ("{VisorWindow;string $pnl=visorPanelName();if(size($pnl)>0) visorPanelMenuCommand( $pnl, \"selectOrCreateTabByLabel Ocean Examples\");}")
  6914.         GetOceanPondExample;
  6915.  
  6916.     runTimeCommand -default true
  6917.         -annotation ("Browse fluid Examples available for downloading...")
  6918.         -category   ("Fluid Effects")
  6919.         -command    ("showHelp -absolute \"http://www.aliaswavefront.com/en/Tmpl/Maya/html/index.jhtml?page=/en/Community/Download/fluids/maya5.shtml&style=normal\"")
  6920.         FluidExamplesOnTheWeb;
  6921.  
  6922.     runTimeCommand -default true
  6923.         -annotation ("Extend fluid resolution, preserving contents and voxel size")
  6924.         -category   ("Fluid Effects")
  6925.         -command    ("performFluids 1 ExtendFluid 0")
  6926.         ExtendFluid;
  6927.  
  6928.     runTimeCommand -default true
  6929.         -annotation ("Extend Fluid Options")
  6930.         -category   ("Fluid Effects")
  6931.         -command    ("performFluids 1 ExtendFluid 3")
  6932.         ExtendFluidOptions;
  6933.  
  6934.     runTimeCommand -default true
  6935.         -annotation ("Modify fluid resolution, preserving contents")
  6936.         -category   ("Fluid Effects")
  6937.         -command    ("performFluids 1 ResampleFluid 0")
  6938.         EditFluidResolution;
  6939.  
  6940.     runTimeCommand -default true
  6941.         -annotation ("Resample Fluid Options")
  6942.         -category   ("Fluid Effects")
  6943.         -command    ("performFluids 1 ResampleFluid 3")
  6944.         EditFluidResolutionOptions;
  6945.  
  6946.     runTimeCommand -default true
  6947.         -annotation ("Make Collide: Select fluid object(s) and geometry "
  6948.                     + "object(s) to collide")
  6949.         -category   ("Fluid Effects")
  6950.         -command    ("performFluids 2 MakeCollideFluid 0")
  6951.         MakeFluidCollide;
  6952.  
  6953.     runTimeCommand -default true
  6954.         -annotation ("Make Collide Options")
  6955.         -category   ("Fluid Effects")
  6956.         -command    ("performFluids 2 MakeCollideFluid 3")
  6957.         MakeFluidCollideOptions;
  6958.  
  6959.     runTimeCommand -default true
  6960.         -annotation ("Select fluid(s) and objects(s) to push the fluids")
  6961.         -category   ("Fluid Effects")
  6962.         -command    ("createMotionField")
  6963.         MakeMotionField;
  6964.  
  6965.     runTimeCommand -default true
  6966.         -annotation ("Decrement the center of a 3D fluid sub-container. Use the Show Manipulator tool on a fluid to view a sub-container.")
  6967.         -category   ("Fluid Effects")
  6968.         -command    ("fluidSetSubVolumeLocation -1")
  6969.         DecrementFluidCenter;
  6970.  
  6971.     runTimeCommand -default true
  6972.         -annotation ("Increment the center of a 3D fluid sub-container. Use the Show Manipulator tool on a fluid to view a sub-container.")
  6973.         -category   ("Fluid Effects")
  6974.         -command    ("fluidSetSubVolumeLocation 1")
  6975.         IncrementFluidCenter;
  6976.  
  6977.     runTimeCommand -default true
  6978.         -annotation ("Set current state of fluid as its initial conditions")
  6979.         -category   ("Fluid Effects")
  6980.         -command    ("performSetFluidState 0")
  6981.         SetInitialState;
  6982.  
  6983.     runTimeCommand -default true
  6984.         -annotation ("Set Initial State Options")
  6985.         -category   ("Fluid Effects")
  6986.         -command    ("performSetFluidState 1")
  6987.         SetInitialStateOptions;
  6988.  
  6989.     runTimeCommand -default true
  6990.         -annotation ("Remove previously set initial conditions")
  6991.         -category   ("Fluid Effects")
  6992.         -command    ("performDeleteFluidsIC 0")
  6993.         ClearInitialState;
  6994.  
  6995.     runTimeCommand -default true
  6996.         -annotation ("Save current contents to \"Fluid Initial States\" tab in Visor")
  6997.         -category   ("Fluid Effects")
  6998.         -command    ("fluidSaveStateAs")
  6999.         SaveFluidStateAs;
  7000.  
  7001.     runTimeCommand -default true
  7002.         -annotation ("Runup to create playback and render cache")
  7003.         -category   ("Fluid Effects")
  7004.         -command    ("performFluidsDiskCache 0 mcfp")
  7005.         CreateFluidCache;
  7006.  
  7007.     runTimeCommand -default true
  7008.         -annotation ("Create Cache Options")
  7009.         -category   ("Fluid Effects")
  7010.         -command    ("performFluidsDiskCache 1 mcfp")
  7011.         CreateFluidCacheOptions;
  7012.  
  7013.     runTimeCommand -default true
  7014.         -annotation ("Append frame range to cache")
  7015.         -category   ("Fluid Effects")
  7016.         -command    ("performAppendDiskCache 0")
  7017.         AppendToFluidCache;
  7018.  
  7019.     runTimeCommand -default true
  7020.         -annotation ("Append to Cache Options")
  7021.         -category   ("Fluid Effects")
  7022.         -command    ("performAppendDiskCache 1")
  7023.         AppendToFluidCacheOptions;
  7024.  
  7025.     runTimeCommand -default true
  7026.         -annotation ("Truncate cache to current frame")
  7027.         -category   ("Fluid Effects")
  7028.         -command    ("performFluids 1 FluidTruncatePBC 0")
  7029.         TruncateFluidCache;
  7030.  
  7031.     runTimeCommand -default true
  7032.         -annotation ("Remove saved cache")
  7033.         -category   ("Fluid Effects")
  7034.         -command    ("performDeleteFluidsPB 0")
  7035.         DeleteFluidCache;
  7036.  
  7037.     runTimeCommand -default true
  7038.         -annotation ("Create an emitter and attach it to a fluid shape")
  7039.         -category   ("Fluid Effects")
  7040.         -command    ("performFluids 2 FluidEmitter 0")
  7041.         FluidEmitter;
  7042.  
  7043.     runTimeCommand -default true
  7044.         -annotation ("Emitter Options")
  7045.         -category   ("Fluid Effects")
  7046.         -command    ("performFluids 2 FluidEmitter 3")
  7047.         FluidEmitterOptions;
  7048.  
  7049.     runTimeCommand -default true
  7050.         -annotation ("Apply predefined gradients to fluid properties")
  7051.         -category   ("Fluid Effects")
  7052.         -command    ("performFluidGradients 0")
  7053.         FluidGradients;
  7054.  
  7055.     runTimeCommand -default true
  7056.         -annotation ("Fluid Gradients Options")
  7057.         -category   ("Fluid Effects")
  7058.         -command    ("performFluidGradients 1")
  7059.         FluidGradientsOptions;
  7060.  
  7061.     runTimeCommand -default true
  7062.         -annotation ("Paint Fluids Tool: Paint fluid properties")
  7063.         -category   ("Fluid Effects")
  7064.         -command    ("artFluidAttrToolScript 4")
  7065.         PaintFluidsTool;
  7066.  
  7067.     runTimeCommand -default true
  7068.         -annotation ("Artisan Paint Fluids Tool Options")
  7069.         -category   ("Fluid Effects")
  7070.         -command    ("artFluidAttrToolScript 3")
  7071.         PaintFluidsToolOptions;
  7072.  
  7073.     runTimeCommand -default true
  7074.         -annotation ("Set Contents from Curve")
  7075.         -category   ("Fluid Effects")
  7076.         -command    ("performSetFluidAttrFromCurve 0")
  7077.         SetFluidAttrFromCurve;
  7078.  
  7079.     runTimeCommand -default true
  7080.         -annotation ("Set Contents from Curve Options")
  7081.         -category   ("Fluid Effects")
  7082.         -command    ("performSetFluidAttrFromCurve 1")
  7083.         SetFluidAttrFromCurveOptions;
  7084.  
  7085.     runTimeCommand -default true
  7086.         -annotation ("Browse initial states to apply...")
  7087.         -category   ("Fluid Effects")
  7088.         -command    ("performInitialStates 0")
  7089.         InitialFluidStates;
  7090.  
  7091.     runTimeCommand -default true
  7092.         -annotation ("Initial States Options")
  7093.         -category   ("Fluid Effects")
  7094.         -command    ("performInitialStates 1")
  7095.         InitialFluidStatesOptions;
  7096.  
  7097.     runTimeCommand -default true
  7098.         -annotation ("Create a planar surface with assigned ocean shader and optional preview plane")
  7099.         -category   ("Fluid Effects")
  7100.         -command    ("performCreateOcean 0")
  7101.         CreateOcean;
  7102.  
  7103.     runTimeCommand -default true
  7104.         -annotation ("Create Ocean Options")
  7105.         -category   ("Fluid Effects")
  7106.         -command    ("performCreateOcean 1")
  7107.         CreateOceanOptions;
  7108.  
  7109.     runTimeCommand -default true
  7110.         -annotation ("Add an interactive surface previewing plane to selected ocean")
  7111.         -category   ("Fluid Effects")
  7112.         -command    ("fluidOceanAddPreviewPlane")
  7113.         AddOceanPreviewPlane;
  7114.  
  7115.     runTimeCommand -default true
  7116.         -annotation ("Add a surface locator to selected ocean")
  7117.         -category   ("Fluid Effects")
  7118.         -command    ("performOceanLocator 0 0")
  7119.         AddOceanSurfaceLocator;
  7120.  
  7121.     runTimeCommand -default true
  7122.         -annotation ("Create a fluid water simulation texture if it does not exist, and emit into from selected objects")
  7123.         -category   ("Fluid Effects")
  7124.         -command    ("performCreateOceanWake 0")
  7125.         CreateOceanWake;
  7126.  
  7127.     runTimeCommand -default true
  7128.         -annotation ("Create Ocean Wake Options")
  7129.         -category   ("Fluid Effects")
  7130.         -command    ("performCreateOceanWake 1")
  7131.         CreateOceanWakeOptions;
  7132.  
  7133.     runTimeCommand -default true
  7134.         -annotation ("Add a surface locator with added buoyancy dynamics to selected ocean")
  7135.         -category   ("Fluid Effects")
  7136.         -command    ("performOceanLocator 0 1")
  7137.         AddOceanDynamicLocator;
  7138.  
  7139.     runTimeCommand -default true
  7140.         -annotation ("Ocean Dynamic Locator Options")
  7141.         -category   ("Fluid Effects")
  7142.         -command    ("performOceanLocator 1 1")
  7143.         AddOceanDynamicLocatorOptions;
  7144.  
  7145.     runTimeCommand -default true
  7146.         -annotation ("Add a surface locator with added boat dynamics to selected ocean")
  7147.         -category   ("Fluid Effects")
  7148.         -command    ("performOceanLocator 0 3")
  7149.         AddBoatLocator;
  7150.  
  7151.     runTimeCommand -default true
  7152.         -annotation ("Boat Locator Options")
  7153.         -category   ("Fluid Effects")
  7154.         -command    ("performOceanLocator 1 3")
  7155.         AddBoatLocatorOptions;
  7156.  
  7157.     runTimeCommand -default true
  7158.         -annotation ("Add locator with added buoyancy dynamics driving a sphere")
  7159.         -category   ("Fluid Effects")
  7160.         -command    ("performOceanLocator 0 2")
  7161.         AddDynamicBuoy;
  7162.  
  7163.     runTimeCommand -default true
  7164.         -annotation ("Dynamic Buoy Options")
  7165.         -category   ("Fluid Effects")
  7166.         -command    ("performOceanLocator 1 2")
  7167.         AddDynamicBuoyOptions;
  7168.  
  7169.     runTimeCommand -default true
  7170.         -annotation ("Parent each selected object to a locator with buoyancy dynamics")
  7171.         -category   ("Fluid Effects")
  7172.         -command    ("performOceanLocator 0 4")
  7173.         FloatSelectedObjects;
  7174.  
  7175.     runTimeCommand -default true
  7176.         -annotation ("Float Selected Objects Options")
  7177.         -category   ("Fluid Effects")
  7178.         -command    ("performOceanLocator 1 4")
  7179.         FloatSelectedObjectsOptions;
  7180.  
  7181.     runTimeCommand -default true
  7182.         -annotation ("Parent each selected object to a locator with boat dynamics")
  7183.         -category   ("Fluid Effects")
  7184.         -command    ("performOceanLocator 0 5")
  7185.         MakeBoats;
  7186.  
  7187.     runTimeCommand -default true
  7188.         -annotation ("Make Boats Options")
  7189.         -category   ("Fluid Effects")
  7190.         -command    ("performOceanLocator 1 5")
  7191.         MakeBoatsOptions;
  7192.  
  7193.     runTimeCommand -default true
  7194.         -annotation ("Parent each selected object to a locator with motor boat dynamics")
  7195.         -category   ("Fluid Effects")
  7196.         -command    ("performOceanLocator 0 6")
  7197.         MakeMotorBoats;
  7198.  
  7199.     runTimeCommand -default true
  7200.         -annotation ("Make Motor Boats Options")
  7201.         -category   ("Fluid Effects")
  7202.         -command    ("performOceanLocator 1 6")
  7203.         MakeMotorBoatsOptions;
  7204.  
  7205.     // Pond Commands
  7206.     runTimeCommand -default true
  7207.         -annotation ("Create a pond water surface fluid simulation")
  7208.         -category   ("Fluid Effects")
  7209.         -command    ("performCreatePond 0")
  7210.         CreatePond;
  7211.  
  7212.     runTimeCommand -default true
  7213.         -annotation ("Create Pond Options")
  7214.         -category   ("Fluid Effects")
  7215.         -command    ("performCreatePond 1")
  7216.         CreatePondOptions;
  7217.  
  7218.     runTimeCommand -default true
  7219.         -annotation ("Create wake emitters for selected objects into current pond")
  7220.         -category   ("Fluid Effects")
  7221.         -command    ("performCreateWake 0")
  7222.         CreateWake;
  7223.  
  7224.     runTimeCommand -default true
  7225.         -annotation ("Create Wake Options")
  7226.         -category   ("Fluid Effects")
  7227.         -command    ("performCreateWake 1")
  7228.         CreateWakeOptions;
  7229.  
  7230.     runTimeCommand -default true
  7231.         -annotation ("Add a surface locator to selected pond")
  7232.         -category   ("Fluid Effects")
  7233.         -command    ("performPondLocator 0 0")
  7234.         AddPondSurfaceLocator;
  7235.  
  7236.     runTimeCommand -default true
  7237.         -annotation ("Add a surface locator with added buoyancy dynamics to selected pond")
  7238.         -category   ("Fluid Effects")
  7239.         -command    ("performPondLocator 0 1")
  7240.         AddPondDynamicLocator;
  7241.  
  7242.     runTimeCommand -default true
  7243.         -annotation ("Pond Dynamic Locator Options")
  7244.         -category   ("Fluid Effects")
  7245.         -command    ("performPondLocator 1 1")
  7246.         AddPondDynamicLocatorOptions;
  7247.  
  7248.     runTimeCommand -default true
  7249.         -annotation ("Add a surface locator with added boat dynamics to selected pond")
  7250.         -category   ("Fluid Effects")
  7251.         -command    ("performPondLocator 0 3")
  7252.         AddPondBoatLocator;
  7253.  
  7254.     runTimeCommand -default true
  7255.         -annotation ("Boat Locator Options")
  7256.         -category   ("Fluid Effects")
  7257.         -command    ("performPondLocator 1 3")
  7258.         AddPondBoatLocatorOptions;
  7259.  
  7260.     runTimeCommand -default true
  7261.         -annotation ("Add locator with added buoyancy dynamics driving a sphere")
  7262.         -category   ("Fluid Effects")
  7263.         -command    ("performPondLocator 0 2")
  7264.         AddPondDynamicBuoy;
  7265.  
  7266.     runTimeCommand -default true
  7267.         -annotation ("Dynamic Buoy Options")
  7268.         -category   ("Fluid Effects")
  7269.         -command    ("performPondLocator 1 2")
  7270.         AddPondDynamicBuoyOptions;
  7271.  
  7272.     runTimeCommand -default true
  7273.         -annotation ("Parent each selected object to a locator with buoyancy dynamics")
  7274.         -category   ("Fluid Effects")
  7275.         -command    ("performPondLocator 0 4")
  7276.         FloatSelectedPondObjects;
  7277.  
  7278.     runTimeCommand -default true
  7279.         -annotation ("Float Selected Objects Options")
  7280.         -category   ("Fluid Effects")
  7281.         -command    ("performPondLocator 1 4")
  7282.         FloatSelectedPondObjectsOptions;
  7283.  
  7284.     runTimeCommand -default true
  7285.         -annotation ("Parent each selected object to a locator with boat dynamics")
  7286.         -category   ("Fluid Effects")
  7287.         -command    ("performPondLocator 0 5")
  7288.         MakePondBoats;
  7289.  
  7290.     runTimeCommand -default true
  7291.         -annotation ("Make Boats Options")
  7292.         -category   ("Fluid Effects")
  7293.         -command    ("performPondLocator 1 5")
  7294.         MakePondBoatsOptions;
  7295.  
  7296.     runTimeCommand -default true
  7297.         -annotation ("Parent each selected object to a locator with motor boat dynamics")
  7298.         -category   ("Fluid Effects")
  7299.         -command    ("performPondLocator 0 6")
  7300.         MakePondMotorBoats;
  7301.  
  7302.     runTimeCommand -default true
  7303.         -annotation ("Make Motor Boats Options")
  7304.         -category   ("Fluid Effects")
  7305.         -command    ("performPondLocator 1 6")
  7306.         MakePondMotorBoatsOptions;
  7307.  
  7308. }
  7309.  
  7310. //
  7311. //    Fields menu.
  7312. //
  7313. // ----------------------------------------------------------------------
  7314.  
  7315. runTimeCommand -default true
  7316.     -annotation ("Air: Create an air field.  Select objects to be " +
  7317.                  "affected by the field")
  7318.     -category   ("Fields")
  7319.     -command    ("performDynamics 1 Air 0")
  7320.     Air;
  7321.  
  7322. runTimeCommand -default true
  7323.     -annotation ("Air Options")
  7324.     -category   ("Fields")
  7325.     -command    ("performDynamics 1 Air 1")
  7326.     AirOptions;
  7327.  
  7328. runTimeCommand -default true
  7329.     -annotation ("Drag: Create a drag field.  Select objects to be " +
  7330.                  "affected by the field")
  7331.     -category   ("Fields")
  7332.     -command    ("performDynamics 1 Drag 0")
  7333.     Drag;
  7334.  
  7335. runTimeCommand -default true
  7336.     -annotation ("Drag Options")
  7337.     -category   ("Fields")
  7338.     -command    ("performDynamics 1 Drag 1")
  7339.     DragOptions;
  7340.  
  7341. runTimeCommand -default true
  7342.     -annotation ("Gravity: Create a gravity field.  Select objects " +
  7343.                  "to be affected by the field")
  7344.     -category   ("Fields")
  7345.     -command    ("performDynamics 1 Gravity 0")
  7346.     Gravity;
  7347.  
  7348. runTimeCommand -default true
  7349.     -annotation ("Gravity Options")
  7350.     -category   ("Fields")
  7351.     -command    ("performDynamics 1 Gravity 1")
  7352.     GravityOptions;
  7353.  
  7354. runTimeCommand -default true
  7355.     -annotation ("Newton: Create a newton field.  Select objects " +
  7356.                  "to be affected by the field")
  7357.     -category   ("Fields")
  7358.     -command    ("performDynamics 1 Newton 0")
  7359.     Newton;
  7360.  
  7361. runTimeCommand -default true
  7362.     -annotation ("Newton Options")
  7363.     -category   ("Fields")
  7364.     -command    ("performDynamics 1 Newton 1")
  7365.     NewtonOptions;
  7366.  
  7367. runTimeCommand -default true
  7368.     -annotation ("Radial: Create a radial field.  Select objects " +
  7369.                  "to be affected by the field")
  7370.     -category   ("Fields")
  7371.     -command    ("performDynamics 1 Radial 0")
  7372.     Radial;
  7373.  
  7374. runTimeCommand -default true
  7375.     -annotation ("Radial Options")
  7376.     -category   ("Fields")
  7377.     -command    ("performDynamics 1 Radial 1")
  7378.     RadialOptions;
  7379.  
  7380. runTimeCommand -default true
  7381.     -annotation ("Turbulence: Create a turbulence field.  Select " +
  7382.                  "objects to be affected by the field")
  7383.     -category   ("Fields")
  7384.     -command    ("performDynamics 1 Turbulence 0")
  7385.     Turbulence;
  7386.  
  7387. runTimeCommand -default true
  7388.     -annotation ("Turbulence Options")
  7389.     -category   ("Fields")
  7390.     -command    ("performDynamics 1 Turbulence 1")
  7391.     TurbulenceOptions;
  7392.  
  7393. runTimeCommand -default true
  7394.     -annotation ("Uniform: Create a unform field.  Select objects " +
  7395.                  "to be affected by the field")
  7396.     -category   ("Fields")
  7397.     -command    ("performDynamics 1 Uniform 0")
  7398.     Uniform;
  7399.  
  7400. runTimeCommand -default true
  7401.     -annotation ("Uniform Options")
  7402.     -category   ("Fields")
  7403.     -command    ("performDynamics 1 Uniform 1")
  7404.     UniformOptions;
  7405.  
  7406. runTimeCommand -default true
  7407.     -annotation ("Vortex: Create a vortex field.  Select objects " +
  7408.                  "to be affected by the field")
  7409.     -category   ("Fields")
  7410.     -command    ("performDynamics 1 Vortex 0")
  7411.     Vortex;
  7412.  
  7413. runTimeCommand -default true
  7414.     -annotation ("Vortex Options")
  7415.     -category   ("Fields")
  7416.     -command    ("performDynamics 1 Vortex 1")
  7417.     VortexOptions;
  7418.  
  7419. runTimeCommand -default true
  7420.     -annotation ("Volume Axis: Create a volume axis field.  Select " +
  7421.                  "objects to be affected by the field")
  7422.     -category   ("Fields")
  7423.     -command    ("performDynamics 1 VolumeAxis 0")
  7424.     VolumeAxis;
  7425.  
  7426. runTimeCommand -default true
  7427.     -annotation ("Volume Axis Options")
  7428.     -category   ("Fields")
  7429.     -command    ("performDynamics 1 VolumeAxis 1")
  7430.     VolumeAxisOptions;
  7431.  
  7432. runTimeCommand -default true
  7433.     -annotation ("Use Selected Object as Source of Field: Select " +
  7434.                  "field, then select object to be its source")
  7435.     -category   ("Fields")
  7436.     -command    ("addDynamic")
  7437.     AttachSelectedAsSourceField;
  7438.  
  7439. runTimeCommand -default true
  7440.     -annotation ("Affect Selected Object(s): Select object(s) to " +
  7441.                  "be affected, then select field")
  7442.     -category   ("Fields")
  7443.     -command    ("performDynamicsConnect 1")
  7444.     AffectSelectedObject;
  7445.  
  7446. //
  7447. //    Soft/Rigid Bodies menu.
  7448. //
  7449. // ----------------------------------------------------------------------
  7450.  
  7451. runTimeCommand -default true
  7452.     -annotation ("Active Rigid Body: Select geometry " +
  7453.                  "objects to create rigid bodies")
  7454.     -category   ("Soft and Rigid Bodies")
  7455.     -command    ("performDynamics 2 ActiveRigid 0")
  7456.     CreateActiveRigidBody;
  7457.  
  7458. runTimeCommand -default true
  7459.     -annotation ("Create Active Rigid Body Options")
  7460.     -category   ("Soft and Rigid Bodies")
  7461.     -command    ("performDynamics 2 ActiveRigid 1")
  7462.     CreateActiveRigidBodyOptions;
  7463.  
  7464. runTimeCommand -default true
  7465.     -annotation ("Passive Rigid Body: Select geometry " +
  7466.                  "objects to create rigid bodies")
  7467.     -category   ("Soft and Rigid Bodies")
  7468.     -command    ("performDynamics 2 PassiveRigid 0")
  7469.     CreatePassiveRigidBody;
  7470.  
  7471. runTimeCommand -default true
  7472.     -annotation ("Create Passive Rigid Body Options")
  7473.     -category   ("Soft and Rigid Bodies")
  7474.     -command    ("performDynamics 2 PassiveRigid 1")
  7475.     CreatePassiveRigidBodyOptions;
  7476.  
  7477. runTimeCommand -default true
  7478.     -annotation ("Constraint: Select rigid bodies to " +
  7479.                  "be constrained")
  7480.     -category   ("Soft and Rigid Bodies")
  7481.     -command    ("performDynamics 2 Constrain 0")
  7482.     CreateConstraint;
  7483.  
  7484. runTimeCommand -default true
  7485.     -annotation ("Create Constraint Options")
  7486.     -category   ("Soft and Rigid Bodies")
  7487.     -command    ("performDynamics 2 Constrain 1")
  7488.     CreateConstraintOptions;
  7489.  
  7490. runTimeCommand -default true
  7491.     -annotation ("Set Active Key: Select one or more active " +
  7492.                  "rigid bodies")
  7493.     -category   ("Soft and Rigid Bodies")
  7494.     -command    ("setRigidKeyframe(1)")
  7495.     SetActiveKey;
  7496.  
  7497. runTimeCommand -default true
  7498.     -annotation ("Set Passive Key: Select one or more passive " +
  7499.                  "rigid bodies")
  7500.     -category   ("Soft and Rigid Bodies")
  7501.     -command    ("setRigidKeyframe(0)")
  7502.     SetPassiveKey;
  7503.  
  7504. runTimeCommand -default true
  7505.     -annotation ("Break Rigid Body Connections: Break " +
  7506.                  "connections on selected rigid bodies that " +
  7507.                  "have been keyframed or baked")
  7508.     -category   ("Soft and Rigid Bodies")
  7509.     -command    ("breakRigidBodyConnections")
  7510.     BreakRigidBodyConnection;
  7511.  
  7512. runTimeCommand -default true
  7513.     -annotation ("Create Soft Body: Select geometry object(s) " +
  7514.                  "to create soft bodies")
  7515.     -category   ("Soft and Rigid Bodies")
  7516.     -command    ("performDynamics 2 Soft 0")
  7517.     CreateSoftBody;
  7518.  
  7519. runTimeCommand -default true
  7520.     -annotation ("Create Soft Body Options")
  7521.     -category   ("Soft and Rigid Bodies")
  7522.     -command    ("performDynamics 2 Soft 1")
  7523.     CreateSoftBodyOptions;
  7524.  
  7525. runTimeCommand -default true
  7526.     -annotation ("Create Springs: Select particle(s) to add springs")
  7527.     -category   ("Soft and Rigid Bodies")
  7528.     -command    ("performDynamics 2 Spring 0")
  7529.     CreateSpring;
  7530.  
  7531. runTimeCommand -default true
  7532.     -annotation ("Create Springs Options")
  7533.     -category   ("Soft and Rigid Bodies")
  7534.     -command    ("performDynamics 2 Spring 1")
  7535.     CreateSpringOptions;
  7536.  
  7537. //
  7538. //    Effects menu.
  7539. //
  7540. // ----------------------------------------------------------------------
  7541.  
  7542. runTimeCommand -default true
  7543.     -annotation ("Fire: Create fire effect")
  7544.     -category   ("Effects")
  7545.     -command    ("performDynamicsClipEffects Fire 0")
  7546.     Fire;
  7547.  
  7548. runTimeCommand -default true
  7549.     -annotation ("Fire Options")
  7550.     -category   ("Effects")
  7551.     -command    ("performDynamicsClipEffects  Fire 1")
  7552.     FireOptions;
  7553.  
  7554. runTimeCommand -default true
  7555.     -annotation ("Smoke: Create smoke effect")
  7556.     -category   ("Effects")
  7557.     -command    ("performDynamicsClipEffects Smoke 0")
  7558.     Smoke;
  7559.  
  7560. runTimeCommand -default true
  7561.     -annotation ("Create Smoke Options")
  7562.     -category   ("Effects")
  7563.     -command    ("performDynamicsClipEffects  Smoke 1")
  7564.     SmokeOptions;
  7565.  
  7566. runTimeCommand -default true
  7567.     -annotation ("Fireworks: Create fireworks effect")
  7568.     -category   ("Effects")
  7569.     -command    ("performDynamicsClipEffects Fireworks 0")
  7570.     Fireworks;
  7571.  
  7572. runTimeCommand -default true
  7573.     -annotation ("Fireworks Options")
  7574.     -category   ("Effects")
  7575.     -command    ("performDynamicsClipEffects  Fireworks 1")
  7576.     FireworksOptions;
  7577.  
  7578. runTimeCommand -default true
  7579.     -annotation ("Lightning: Create lightning effect")
  7580.     -category   ("Effects")
  7581.     -command    ("performDynamicsClipEffects Lightning 0")
  7582.     Lightning;
  7583.  
  7584. runTimeCommand -default true
  7585.     -annotation ("Lightning Options")
  7586.     -category   ("Effects")
  7587.     -command    ("performDynamicsClipEffects Lightning 1")
  7588.     LightningOptions;
  7589.  
  7590. runTimeCommand -default true
  7591.     -annotation ("Shatter: Create shatter effects")
  7592.     -category   ("Effects")
  7593.     -command    ("performDynamicsClipEffects Shatter 0")
  7594.     Shatter;
  7595.  
  7596. runTimeCommand -default true
  7597.     -annotation ("Shatter Options")
  7598.     -category   ("Effects")
  7599.     -command    ("performDynamicsClipEffects Shatter 1")
  7600.     ShatterOptions;
  7601.  
  7602. runTimeCommand -default true
  7603.     -annotation ("Flow: Create flow along curves")
  7604.     -category   ("Effects")
  7605.     -command    ("performDynamicsClipEffects Flow 0")
  7606.     CurveFlow;
  7607.  
  7608. runTimeCommand -default true
  7609.     -annotation ("Flow Options")
  7610.     -category   ("Effects")
  7611.     -command    ("performDynamicsClipEffects  Flow 1")
  7612.     CurveFlowOptions;
  7613.  
  7614. runTimeCommand -default true
  7615.     -annotation ("Surface Flow: Create flow along surfaces")
  7616.     -category   ("Effects")
  7617.     -command    ("performDynamicsClipEffects SurfaceFlow 0")
  7618.     SurfaceFlow;
  7619.  
  7620. runTimeCommand -default true
  7621.     -annotation ("Surface Flow Options")
  7622.     -category   ("Effects")
  7623.     -command    ("performDynamicsClipEffects SurfaceFlow 1")
  7624.     SurfaceFlowOptions;
  7625.  
  7626. runTimeCommand -default true
  7627.     -annotation ("Delete Surface Flow: Delete flow along surfaces")
  7628.     -category   ("Effects")
  7629.     -command    ("performDynamicsClipEffects DeleteSurfaceFlow 0")
  7630.     DeleteSurfaceFlow;
  7631.  
  7632. runTimeCommand -default true
  7633.     -annotation ("Delete Surface Flow Options")
  7634.     -category   ("Effects")
  7635.     -command    ("performDynamicsClipEffects DeleteSurfaceFlow 1")
  7636.     DeleteSurfaceFlowOptions;
  7637.  
  7638. //
  7639. //    Solvers menu.
  7640. //
  7641. // ----------------------------------------------------------------------
  7642.  
  7643. runTimeCommand -default true
  7644.     -annotation ("Rigid Body Solver: Display the Rigid Body Solver Editor")
  7645.     -category   ("Solvers")
  7646.     -command    ("invokeRigidSolverEditor")
  7647.     RigidBodySolver;
  7648.  
  7649. runTimeCommand -default true
  7650.     -annotation ("Create Rigid Body Solver: Creates a new rigid " +
  7651.                  "body solver and makes it current")
  7652.     -category   ("Solvers")
  7653.     -command    ("evalEcho rigidSolver -create")
  7654.     CreateRigidBodySolver;
  7655.  
  7656. runTimeCommand -default true
  7657.     -annotation ("Set Rigid Body Interpenetration: Allow selected " +
  7658.                  "rigid bodies to interpenetrate")
  7659.     -category   ("Solvers")
  7660.     -command    ("rigidBodyInterpenetrate 1")
  7661.     SetRigidBodyInterpenetration;
  7662.  
  7663. runTimeCommand -default true
  7664.     -annotation ("Set Rigid Body Collision: Allow selected rigid " +
  7665.                  "bodies to collide")
  7666.     -category   ("Solvers")
  7667.     -command    ("rigidBodyInterpenetrate 0")
  7668.     SetRigidBodyCollision;
  7669.  
  7670. runTimeCommand -default true
  7671.     -annotation ("Enable Cache: Turn memory caching on for all " +
  7672.                  "selected particles and rigid bodies")
  7673.     -category   ("Solvers")
  7674.     -command    ("cacheControl 1")
  7675.     EnableMemoryCaching;
  7676.  
  7677. runTimeCommand -default true
  7678.     -annotation ("Disable Cache: Turn memory caching off for all " +
  7679.                  "selected particles and rigid bodies")
  7680.     -category   ("Solvers")
  7681.     -command    ("cacheControl 0")
  7682.     DisableMemoryCaching;
  7683.  
  7684. runTimeCommand -default true
  7685.     -annotation ("Delete Cache: Remove from memory the cache " +
  7686.                  "for all selected particles and rigid bodies")
  7687.     -category   ("Solvers")
  7688.     -command    ("cacheDelete")
  7689.     DeleteMemoryCaching;
  7690.  
  7691. runTimeCommand -default true
  7692.     -annotation ("Create Particle Disk Cache: Write cache files " +
  7693.                  "to disk for current playback range")
  7694.     -category   ("Solvers")
  7695.     -command    ("performDynamics 0 ParticleRenderCache 0")
  7696.     CreateParticleDiskCache;
  7697.  
  7698. runTimeCommand -default true
  7699.     -annotation ("Create Particle Disk Cache Options")
  7700.     -category   ("Solvers")
  7701.     -command    ("performDynamics 2 ParticleRenderCache 1")
  7702.     CreateParticleDiskCacheOptions;
  7703.  
  7704. runTimeCommand -default true
  7705.     -annotation ("Edit the oversampling level or particle disk " +
  7706.                  "cache settings")
  7707.     -category   ("Solvers")
  7708.     -command    ("invokeDynGlobalsEditor")
  7709.     EditOversamplingForCacheSettings;
  7710. }
  7711. particleMenus();
  7712.  
  7713. // ======================================================================
  7714. // ======================================================================
  7715. //
  7716. //    Rendering menu set, ie. Lighting/Shading, Render, and Paint Effects.
  7717. //
  7718. // ======================================================================
  7719. // ======================================================================
  7720. proc renderingMenus() {
  7721. //
  7722. //    Lighting/Shading menu.
  7723. //
  7724. // ----------------------------------------------------------------------
  7725.  
  7726. runTimeCommand -default true
  7727.     -annotation ("Make Light Links")
  7728.     -category   ("Lights and Shading")
  7729.     -command    ("lightlink -make -useActiveLights -useActiveObjects")
  7730.     MakeLightLinks;
  7731.  
  7732. runTimeCommand -default true
  7733.     -annotation ("Break Light Links")
  7734.     -category   ("Lights and Shading")
  7735.     -command    ("lightlink -break -useActiveLights -useActiveObjects")
  7736.     BreakLightLinks;
  7737.  
  7738. runTimeCommand -default true
  7739.     -annotation ("Select Objects Illuminated by Light")
  7740.     -category   ("Lights and Shading")
  7741.     -command    ("RenLightingSelectObjects")
  7742.     SelectObjectsIlluminatedByLight;
  7743.  
  7744. runTimeCommand -default true
  7745.     -annotation ("Select Lights Illuminating Object")
  7746.     -category   ("Lights and Shading")
  7747.     -command    ("RenLightingSelectLights")
  7748.     SelectLightsIlluminatingObject;
  7749.  
  7750. runTimeCommand -default true
  7751.     -annotation ("Show Shading Group Attribute Editor")
  7752.     -category   ("Lights and Shading")
  7753.     -command    ("showShadingGroupAttrEditor")
  7754.     ShowShadingGroupAttributeEditor;
  7755.  
  7756. runTimeCommand -default true
  7757.     -annotation ("Displacement to Polygon")
  7758.     -category   ("Lights and Shading")
  7759.     -command    ("displacementToPoly")
  7760.     DisplacementToPolygon;
  7761.  
  7762.  
  7763. // 3d Paint Tool.
  7764. runTimeCommand -default true
  7765.     -annotation ("3D Paint Tool: Paint file textures")
  7766.     -category   ("Texturing")
  7767.     -command    ("art3dPaintToolScript 4")
  7768.     Art3dPaintTool;
  7769.  
  7770. runTimeCommand -default true
  7771.     -annotation ("3D Paint Tool")
  7772.     -category   ("Texturing")
  7773.     -command    ("art3dPaintToolScript 3")
  7774.     Art3dPaintToolOptions;
  7775.  
  7776. runTimeCommand -default true
  7777.     -annotation ("Create Texture Reference Object")
  7778.     -category   ("Texturing")
  7779.     -command    ("makeReferenceObject")
  7780.     CreateTextureReferenceObject;
  7781.  
  7782. runTimeCommand -default true
  7783.     -annotation ("Delete Texture Reference Object")
  7784.     -category   ("Texturing")
  7785.     -command    ("deleteReferenceObject")
  7786.     DeleteTextureReferenceObject;
  7787.  
  7788. runTimeCommand -default true
  7789.     -annotation ("Select Texture Reference Object")
  7790.     -category   ("Texturing")
  7791.     -command    ("selectReferenceObject")
  7792.     SelectTextureReferenceObject;
  7793.  
  7794. runTimeCommand -default true
  7795.     -annotation ("NURBS Texture Placement Tool")
  7796.     -category   ("Texturing")
  7797.     -command    ("setToolTo defaultTexturePlacementContext")
  7798.     NURBSTexturePlacementTool;
  7799.  
  7800. runTimeCommand -default true
  7801.     -annotation ("NURBS Texture Placement Tool Options")
  7802.     -category   ("Texturing")
  7803.     -command    ("setToolTo defaultTexturePlacementContext; toolPropertyWindow")
  7804.     NURBSTexturePlacementToolOptions;
  7805.  
  7806. //
  7807. //    Render menu.
  7808. //
  7809. // ----------------------------------------------------------------------
  7810.  
  7811. runTimeCommand -default true
  7812.     -annotation ("Render the current frame into a Render View window")
  7813.     -category   ("Render")
  7814.     -command    ("renderIntoNewWindow render")
  7815.     RenderIntoNewWindow;
  7816.  
  7817. runTimeCommand -default true
  7818.     -annotation ("Redo Previous Render")
  7819.     -category   ("Render")
  7820.     -command    ("redoPreviousRender render")
  7821.     RedoPreviousRender;
  7822.  
  7823. runTimeCommand -default true
  7824.     -annotation ("IPR Render the current frame into a Render View window")
  7825.     -category   ("Render")
  7826.     -command    ("renderIntoNewWindow iprRender")
  7827.     IPRRenderIntoNewWindow;
  7828.  
  7829. runTimeCommand -default true
  7830.     -annotation ("Redo Previous IPR Render")
  7831.     -category   ("Render")
  7832.     -command    ("redoPreviousRender iprRender")
  7833.     RedoPreviousIPRRender;
  7834.  
  7835. runTimeCommand -default true
  7836.     -annotation ("Show Render Diagnostics in the Script Editor")
  7837.     -category   ("Render")
  7838.     -command    ("mayaRenderDiagnostics")
  7839.     RenderDiagnostics;
  7840.  
  7841. runTimeCommand -default true
  7842.     -annotation ("Batch Render: Export the current scene to a file and "
  7843.                 + "render that file in the background")
  7844.     -category   ("Render")
  7845.     -command    ("mayaBatchRender")
  7846.     BatchRender;
  7847.  
  7848. runTimeCommand -default true
  7849.     -annotation ("Batch Render Options")
  7850.     -category   ("Render")
  7851.     -command    ("batchRenderOptions")
  7852.     BatchRenderOptions;
  7853.  
  7854. runTimeCommand -default true
  7855.     -annotation ("Cancel Batch Render")
  7856.     -category   ("Render")
  7857.     -command    ("cancelBatchRender")
  7858.     CancelBatchRender;
  7859.  
  7860. runTimeCommand -default true
  7861.     -annotation ("Show Batch Render: Display the batch render image")
  7862.     -category   ("Render")
  7863.     -command    ("showBatchRender")
  7864.     ShowBatchRender;
  7865.  
  7866. if (!`about -nt` && !`about -mac`) {
  7867.     runTimeCommand -default true
  7868.         -annotation ("DistributeRender")
  7869.         -category   ("Render")
  7870.         -command    ("distributedRenderSession")
  7871.         DistributeRender;
  7872. }
  7873.  
  7874. //
  7875. //    Paint Effects menu.
  7876. //
  7877. // ----------------------------------------------------------------------
  7878.  
  7879. runTimeCommand -default true
  7880.     -annotation ("Open Paint Effects Panel")
  7881.     -category   ("Paint Effects")
  7882.     -command    ("creatorOpenPaintEffectsPanel_NamedCmd")
  7883.     PaintEffectsPanel;
  7884.  
  7885. runTimeCommand -default true
  7886.     -annotation ("Paint Effects Tool: Draw strokes on " +
  7887.                  "paintable surfaces or the ground plane")
  7888.     -category   ("Paint Effects")
  7889.     -command    ("creatorSetPaintEffectCtx_NamedCmd")
  7890.     PaintEffectsTool;
  7891.  
  7892. runTimeCommand -default true
  7893.     -annotation ("Paint Effects Tool Options")
  7894.     -category   ("Paint Effects")
  7895.     -command    ("setToolTo $gCreatorWireCtx; toolPropertyWindow;")
  7896.     PaintEffectsToolOptions;
  7897.  
  7898. runTimeCommand -default true
  7899.     -annotation ("Make Paintable: Make the selected surface(s) " +
  7900.                  "paintable, and other surfaces not paintable")
  7901.     -category   ("Paint Effects")
  7902.     -command    ("creatorMakePaintable_NamedCmd")
  7903.     MakePaintable;
  7904.  
  7905. runTimeCommand -default true
  7906.     -annotation ("Template Brush Settings: Edit the brush " +
  7907.                  "settings which will be applied to subsequent strokes")
  7908.     -category   ("Paint Effects")
  7909.     -command    ("brushToolSettings")
  7910.     TemplateBrushSettings;
  7911.  
  7912. runTimeCommand -default true
  7913.     -annotation ("Reset Template Brush: Reset the template " +
  7914.                  "brush attributes to their default values")
  7915.     -category   ("Paint Effects")
  7916.     -command    ("resetBrush")
  7917.     ResetTemplateBrush;
  7918.  
  7919. runTimeCommand -default true
  7920.     -annotation ("Paint on Paintable Objects: When on, project " +
  7921.                  "strokes onto the paintable objects in the scene")
  7922.     -category   ("Paint Effects")
  7923.     -command    ("dynWireCtx -e -dp 1 $gCreatorWireCtx")
  7924.     PaintOnPaintableObjects;
  7925.  
  7926. runTimeCommand -default true
  7927.     -annotation ("Toggle Paint On Paintable Objects")
  7928.     -category   ("Paint Effects")
  7929.     -command    ("creatorTogglePaintOnPaintable_NamedCmd")
  7930.     TogglePaintOnPaintableObjects;
  7931.  
  7932. runTimeCommand -default true
  7933.     -annotation ("Paint on View Plane: When on, project strokes " +
  7934.                  "onto the view plane (Like a piece of glass in " +
  7935.                  "front of the camera)")
  7936.     -category   ("Paint Effects")
  7937.     -command    ("dynWireCtx -e -dp 0 $gCreatorWireCtx")
  7938.     PaintOnViewPlane;
  7939.  
  7940. runTimeCommand -default true
  7941.     -annotation ("Apply Settings to Last Stroke: Copy the current " +
  7942.                  "template brush settings onto the most recently " +
  7943.                  "created stroke")
  7944.     -category   ("Paint Effects")
  7945.     -command    ("copyTemplateBrushToSelected")
  7946.     ApplySettingsToLastStroke;
  7947.  
  7948. runTimeCommand -default true
  7949.     -annotation ("Get Settings from Selected Stroke: Copy the " +
  7950.                  "brush settings from the currently selected " +
  7951.                  "stroke to the template brush")
  7952.     -category   ("Paint Effects")
  7953.     -command    ("setTemplateToCurrentBrush")
  7954.     GetSettingsFromSelectedStroke;
  7955.  
  7956. runTimeCommand -default true
  7957.     -annotation ("Apply Settings to Selected Strokes: Copy the " +
  7958.                  "template brush settings to the currently " +
  7959.                  "selected strokes")
  7960.     -category   ("Paint Effects")
  7961.     -command    ("copyTemplateBrushToSelected")
  7962.     ApplySettingsToSelectedStroke;
  7963.  
  7964. runTimeCommand -default true
  7965.     -annotation ("Share One Brush: Cause selected strokes to " +
  7966.                  "share a common brush (so that editing the " +
  7967.                  "brush changes the appearance of all these strokes)")
  7968.     -category   ("Paint Effects")
  7969.     -command    ("useSameBrush")
  7970.     ShareOneBrush;
  7971.  
  7972. runTimeCommand -default true
  7973.     -annotation ("Remove Brush Sharing: Give each selected " +
  7974.                  "stroke a unique brush (if it was previously " +
  7975.                  "sharing a brush)")
  7976.     -category   ("Paint Effects")
  7977.     -command    ("unShareBrush")
  7978.     RemoveBrushSharing;
  7979.  
  7980. runTimeCommand -default true
  7981.     -annotation ("Select Brush/Stroke Names Containing: Select brushes/strokes " +
  7982.                  "whose name contains the specified characters")
  7983.     -category   ("Paint Effects")
  7984.     -command    ("selectBrushesWhoseNameContains")
  7985.     SelectBrushNames;
  7986.  
  7987. runTimeCommand -default true
  7988.     -annotation ("Loop Brush Animation: Make the selected " +
  7989.                  "brush's animation loop seamlessly")
  7990.     -category   ("Paint Effects")
  7991.     -command    ("performLoopBrushAnim false")
  7992.     LoopBrushAnimation;
  7993.  
  7994. runTimeCommand -default true
  7995.     -annotation ("Loop Brush Animation Options")
  7996.     -category   ("Paint Effects")
  7997.     -command    ("performLoopBrushAnim true")
  7998.     LoopBrushAnimationOptions;
  7999.  
  8000. runTimeCommand -default true
  8001.     -annotation ("Make Brush Spring: Add an expression " +
  8002.                  "simulating spring dynamics to the selected stroke(s)")
  8003.     -category   ("Paint Effects")
  8004.     -command    ("performMakeBrushSpring false")
  8005.     MakeBrushSpring;
  8006.  
  8007. runTimeCommand -default true
  8008.     -annotation ("Make Brush Spring Options")
  8009.     -category   ("Paint Effects")
  8010.     -command    ("performMakeBrushSpring true")
  8011.     MakeBrushSpringOptions;
  8012.  
  8013. runTimeCommand -default true
  8014.     -annotation ("Bake Spring Animation: Create animation " +
  8015.                  "curves for any selected stroke(s) which " +
  8016.                  "had \"Make Brush Spring\" applied")
  8017.     -category   ("Paint Effects")
  8018.     -command    ("performBakeBrushSpringAnim false")
  8019.     BakeSpringAnimation;
  8020.  
  8021. runTimeCommand -default true
  8022.     -annotation ("Bake Spring Animation Options")
  8023.     -category   ("Paint Effects")
  8024.     -command    ("performBakeBrushSpringAnim true")
  8025.     BakeSpringAnimationOptions;
  8026.  
  8027. runTimeCommand -default true
  8028.     -annotation ("Simplify Stroke Path Curves: Reduce the " +
  8029.                  "number of CVs in the selected stroke(s)")
  8030.     -category   ("Paint Effects")
  8031.     -command    ("simplifyStrokes 4")
  8032.     SimplifyStrokePathCurves;
  8033.  
  8034. runTimeCommand -default true
  8035.     -annotation ("Set Stroke Control Curves: Make selected " +
  8036.                  "curve(s) control the selected stroke(s) " +
  8037.                  "(see Curve Follow attribute)")
  8038.     -category   ("Paint Effects")
  8039.     -command    ("bindCurvesToStrokes")
  8040.     SetStrokeControlCurves;
  8041.  
  8042. runTimeCommand -default true
  8043.     -annotation ("Attach Brush to Curves: Create a new stroke " +
  8044.                  "using the selected curve(s) and the template brush")
  8045.     -category   ("Paint Effects")
  8046.     -command    ("convertCurvesToStrokes")
  8047.     AttachBrushToCurves;
  8048.  
  8049. runTimeCommand -default true
  8050.     -annotation ("Make Pressure Curve: create a curve to " +
  8051.                  "adjust brushstroke pressure values")
  8052.     -category   ("Paint Effects")
  8053.     -command    ("performMakePressureCurve false")
  8054.     MakePressureCurve;
  8055.  
  8056. runTimeCommand -default true
  8057.     -annotation ("Make Pressure Curve Options")
  8058.     -category   ("Paint Effects")
  8059.     -command    ("performMakePressureCurve true")
  8060.     MakePressureCurveOptions;
  8061.  
  8062. runTimeCommand -default true
  8063.     -annotation ("Paint Grid: Paint current brush onto selected " +
  8064.                  "surfaces using a grid layout")
  8065.     -category   ("Paint Effects")
  8066.     -command    ("performPaintGrid false")
  8067.     PaintGrid;
  8068.  
  8069. runTimeCommand -default true
  8070.     -annotation ("Paint Grid Options")
  8071.     -category   ("Paint Effects")
  8072.     -command    ("performPaintGrid true")
  8073.     PaintGridOptions;
  8074.  
  8075. runTimeCommand -default true
  8076.     -annotation ("Paint Random: Paint current brush onto selected " +
  8077.                  "surfaces using a random layout")
  8078.     -category   ("Paint Effects")
  8079.     -command    ("performPaintRandom false")
  8080.     PaintRandom;
  8081.  
  8082. runTimeCommand -default true
  8083.     -annotation ("Paint Random Options")
  8084.     -category   ("Paint Effects")
  8085.     -command    ("performPaintRandom true")
  8086.     PaintRandomOptions;
  8087.  
  8088.  
  8089. runTimeCommand -default true
  8090.     -annotation ("Paint Effects Globals: Edit global Paint " +
  8091.                  "Effects attributes")
  8092.     -category   ("Paint Effects")
  8093.     -command    ("creatorGlobalSettings")
  8094.     PaintEffectsGlobalSettings;
  8095.  
  8096. runTimeCommand -default true
  8097.     -annotation ("Mesh Quality: Edit mesh quality attributes for "
  8098.                 +"selected stroke or paint effects mesh")
  8099.     -category   ("Paint Effects")
  8100.     -command    ("paintEffectsMeshQuality")
  8101.     PaintEffectsMeshQuality;
  8102.  
  8103. runTimeCommand -default true
  8104.     -annotation ("Preset Blending: Set mix-in levels for brush presets")
  8105.     -category   ("Paint Effects")
  8106.     -command    ("brushPresetBlendWin")
  8107.     PresetBlendingWindow;
  8108.  
  8109. runTimeCommand -default true
  8110.     -annotation ("Save Brush Preset: Save the settings of " +
  8111.                  "the template brush to current shelf or Visor directory")
  8112.     -category   ("Paint Effects")
  8113.     -command    ("saveBrushToShelf")
  8114.     SaveBrushPreset;
  8115.  
  8116. runTimeCommand -default true
  8117.     -annotation ("Clear the Paint Effects view")
  8118.     -category   ("Paint Effects")
  8119.     -command    ("{if (`optionVar -q dynPaint23dToggle` == 2) " +
  8120.                  "{global string $gDynPaintEditorName; " +
  8121.                  "float $cc[] = `optionVar -q dynPaintPanelClearColour`; " +
  8122.                  "dynPaintEditor -e -cl $cc[0] $cc[1] $cc[2] " +
  8123.                  "$gDynPaintEditorName;}}")
  8124.     ClearPaintEffectsView;
  8125.  
  8126. runTimeCommand -default true
  8127.     -annotation ("Canvas Undo")
  8128.     -category   ("Paint Effects")
  8129.     -command    ("dynPaintEditor -e -cu $gDynPaintEditorName;")
  8130.     UndoCanvas;
  8131.     
  8132. runTimeCommand -default true
  8133.     -annotation ("toggle tube direction between alongPath and alongNormal"
  8134.                 +"(useful with plants in canvas mode)")
  8135.     -category   ("Paint Effects")
  8136.     -command    ("setAttr (getDefaultBrush() + \".tubeDirection\")"
  8137.                 +"(!( `getAttr( getDefaultBrush() + \".tubeDirection\" )`));")
  8138.     FlipTubeDirection;
  8139.  
  8140. runTimeCommand -default true
  8141.     -annotation ("toggle paint at depth mode")
  8142.     -category   ("Paint Effects")
  8143.     -command (  
  8144.             "if (`dynWireCtx -q -pd dynWireCtx1`) {\n"
  8145.                +"    dynWireCtx -e -pd false dynWireCtx1;\n"
  8146.             +"    print \"Paint At Depth Now OFF\";\n"
  8147.             +"} else {\n"
  8148.              +"    dynWireCtx -e -pd true dynWireCtx1;\n"
  8149.             +"    print \"Paint At Depth Now ON\";\n"
  8150.             +"}")
  8151.     TogglePaintAtDepth;
  8152.  
  8153. runTimeCommand -default true
  8154.     -annotation ("Brush Preset Blend (Press)")
  8155.     -category   ("Paint Effects")
  8156.     -command    ("setPresetBlend(0.2, 0.2)")
  8157.     BrushPresetBlend;
  8158.  
  8159. runTimeCommand -default true
  8160.     -annotation ("Brush Preset Blend Off (Release)")
  8161.     -category   ("Paint Effects")
  8162.     -command    ("restorePresetBlend()")
  8163.     BrushPresetBlendOff;
  8164.  
  8165. runTimeCommand -default true
  8166.     -annotation ("Brush Preset Blend Shading (Press)")
  8167.     -category   ("Paint Effects")
  8168.     -command    ("setPresetBlend(0.0, 0.3)")
  8169.     BrushPresetBlendShading;
  8170.  
  8171. runTimeCommand -default true
  8172.     -annotation ("Brush Preset Blend Shading Off (Release)")
  8173.     -category   ("Paint Effects")
  8174.     -command    ("restorePresetBlend()")
  8175.     BrushPresetBlendShadingOff;
  8176.  
  8177. runTimeCommand -default true
  8178.     -annotation ("Brush Preset Blend Shape (Press)")
  8179.     -category   ("Paint Effects")
  8180.     -command    ("setPresetBlend(0.3, 0.0)")
  8181.     BrushPresetBlendShape;
  8182.  
  8183. runTimeCommand -default true
  8184.     -annotation ("Brush Preset Blend Shape Off (Release)")
  8185.     -category   ("Paint Effects")
  8186.     -command    ("restorePresetBlend()")
  8187.     BrushPresetBlendShapeOff;
  8188.  
  8189. runTimeCommand -default true
  8190.     -annotation ("Brush Preset Replace Shading (Press)")
  8191.     -category   ("Paint Effects")
  8192.     -command    ("setPresetBlend(0.0, 1.0)")
  8193.     BrushPresetReplaceShading;
  8194.  
  8195. runTimeCommand -default true
  8196.     -annotation ("Brush Preset Replace Shading Off (Release)")
  8197.     -category   ("Paint Effects")
  8198.     -command    ("restorePresetBlend()")
  8199.     BrushPresetReplaceShadingOff;
  8200.  
  8201. runTimeCommand -default true
  8202.     -annotation ("Toggle Opposite Flag Of Selected Shapes")
  8203.     -category   ("Paint Effects")
  8204.     -command    ("string $selectionList[] = `ls -sl -l -dag -leaf`;\n" +
  8205.                  "string $selection;\nfor ($selection in $selectionList) {\n" +
  8206.                  "    if (`nodeType $selection` == \"nurbsSurface\") {\n" +
  8207.                  "        int $op = `getAttr ($selection + \".opposite\")`;\n" +
  8208.                  "        $op = !$op;\n" +
  8209.                  "        setAttr ($selection + \".opposite\") $op;\n" +
  8210.                  "    }\n" +
  8211.                  "}")
  8212.     ToggleOppositeFlagOfSelectedShapes;
  8213.  
  8214. runTimeCommand -default true
  8215.     -annotation ("Brush Animation Menu (Press)")
  8216.     -category   ("Paint Effects")
  8217.     -command    ("creatorBrushAnimationMM")
  8218.     BrushAnimationMarkingMenu;
  8219.  
  8220. runTimeCommand -default true
  8221.     -annotation ("Brush Animation Menu (Release)")
  8222.     -category   ("Paint Effects")
  8223.     -command    ("creatorDeletePopupMM")
  8224.     BrushAnimationMarkingMenuPopDown;
  8225.  
  8226. runTimeCommand -default true
  8227.     -annotation ("Curve Utilities Menu (Press)")
  8228.     -category   ("Paint Effects")
  8229.     -command    ("creatorCurveUtilityMM")
  8230.     CurveUtilitiesMarkingMenu;
  8231.  
  8232. runTimeCommand -default true
  8233.     -annotation ("Curve Utilities Menu (Release)")
  8234.     -category   ("Paint Effects")
  8235.     -command    ("creatorDeletePopupMM")
  8236.     CurveUtilitiesMarkingMenuPopDown;
  8237.  
  8238. runTimeCommand -default true
  8239.     -annotation ("Auto Paint Menu (Press)")
  8240.     -category   ("Paint Effects")
  8241.     -command    ("creatorAutoPaintMM")
  8242.     AutoPaintMarkingMenu;
  8243.  
  8244. runTimeCommand -default true
  8245.     -annotation ("Auto Paint Menu (Release)")
  8246.     -category   ("Paint Effects")
  8247.     -command    ("creatorDeletePopupMM")
  8248.     AutoPaintMarkingMenuPopDown;
  8249.  
  8250. runTimeCommand -default true
  8251.     -annotation ("Swap from Paint Effects to 3D view (Press)")
  8252.     -category   ("Paint Effects")
  8253.     -command    ("dynPaintSwapPanelPress")
  8254.     PaintEffectPanelActivate;
  8255.  
  8256. runTimeCommand -default true
  8257.     -annotation ("Swap from Paint Effects to 3D view (Release)")
  8258.     -category   ("Paint Effects")
  8259.     -command    ("dynPaintSwapPanelRelease")
  8260.     PaintEffectPanelDeactivate;
  8261. }
  8262.  
  8263. runTimeCommand -default true
  8264.     -annotation ("Paint Effects To Polygons")
  8265.     -category   ("Paint Effects")
  8266.     -command    ("performPaintEffectsToPoly  false")
  8267.     PaintEffectsToPoly;
  8268.  
  8269. runTimeCommand -default true
  8270.     -annotation ("Paint Effects To Polygons Options")
  8271.     -category   ("Paint Effects")
  8272.     -command    ("performPaintEffectsToPoly  true")
  8273.     PaintEffectsToPolyOptions;
  8274.  
  8275. renderingMenus();
  8276.  
  8277. // ======================================================================
  8278. // ======================================================================
  8279. //
  8280. //    Some other category of commands.
  8281. //
  8282. // ======================================================================
  8283. // ======================================================================
  8284.  
  8285. proc miscCommands() {
  8286. //
  8287. //    Modeling Panel commands.
  8288. //
  8289. // ----------------------------------------------------------------------
  8290.  
  8291. //    Display Wireframe for current panel.
  8292. //
  8293. runTimeCommand -default true
  8294.     -annotation ("Wireframe Display")
  8295.     -category   ("Modeling Panel")
  8296.     -command    ("displaySmoothness -full;\n" +
  8297.                  "{\n" +
  8298.                  "    string $currentPanel = `getPanel -underPointer`;\n" +
  8299.                  "    if (\"\" == $currentPanel) {\n" +
  8300.                  "        $currentPanel = `getPanel -withFocus`;\n" +
  8301.                  "    }\n" +
  8302.                  "    if (\"\" != $currentPanel) {\n" +
  8303.                  "        string $panelType = `getPanel -typeOf $currentPanel`;\n" +
  8304.                  "        if ($panelType ==  \"modelPanel\") {\n" +
  8305.                  "            modelEditor -edit -displayAppearance \"wireframe\" \n" +
  8306.                  "                -displayLights \"default\" $currentPanel;\n" +
  8307.                  "        } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -exists $currentPanel` \n" +
  8308.                  "            && `scriptedPanel -query -type $currentPanel` == \"dynPaintScriptedPanelType\") {\n" +
  8309.                  "            dynPaintEditor -edit -displayAppearance \"wireframe\" \n" +
  8310.                  "                -displayLights \"default\" $gDynPaintEditorName;\n" +
  8311.                  "        }\n" +
  8312.                  "    }\n" +
  8313.                  "}\n")
  8314.     DisplayWireframe;
  8315.     
  8316. //    Display Shaded for current panel.
  8317. //
  8318. runTimeCommand -default true
  8319.     -annotation ("Shaded Display")
  8320.     -category   ("Modeling Panel")
  8321.     -command    ("{\n" +
  8322.                  "    string $currentPanel = `getPanel -underPointer`;\n" +
  8323.                  "    if (\"\" == $currentPanel) {\n" +
  8324.                  "        $currentPanel = `getPanel -withFocus`;\n" +
  8325.                  "    }\n" +
  8326.                  "    if (\"\" != $currentPanel) {\n" +
  8327.                  "        string $panelType = `getPanel -typeOf $currentPanel`;\n" +
  8328.                  "        if ($panelType ==  \"modelPanel\") {\n" +
  8329.                  "            modelEditor -edit -displayAppearance \"smoothShaded\" -displayTextures off \n" +
  8330.                  "                -displayLights \"default\" $currentPanel;\n" +
  8331.                  "        } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -exists $currentPanel` \n" +
  8332.                  "            && `scriptedPanel -query -type $currentPanel` == \"dynPaintScriptedPanelType\") {\n" +
  8333.                  "            dynPaintEditor -edit -displayTextures 0 -displayAppearance \"smoothShaded\"\n" +
  8334.                  "                -displayLights \"default\" $gDynPaintEditorName;\n" +
  8335.                  "        }\n" +
  8336.                  "    }\n" +
  8337.                  "}\n")
  8338.     DisplayShaded;
  8339.  
  8340. //    Display Smooth Shaded without changing other parameters for current panel.
  8341. //
  8342. runTimeCommand -default true
  8343.     -annotation ("Smooth Shaded Display")
  8344.     -category   ("Modeling Panel")
  8345.     -command    ("{\n" +
  8346.                  "    string $currentPanel = `getPanel -underPointer`;\n" +
  8347.                  "    if (\"\" == $currentPanel) {\n" +
  8348.                  "        $currentPanel = `getPanel -withFocus`;\n" +
  8349.                  "    }\n" +
  8350.                  "    if (\"\" != $currentPanel) {\n" +
  8351.                  "        string $panelType = `getPanel -typeOf $currentPanel`;\n" +
  8352.                  "        if ($panelType ==  \"modelPanel\") {\n" +
  8353.                  "            modelEditor -edit -displayAppearance \"smoothShaded\" \n" +
  8354.                  "                $currentPanel;\n" +
  8355.                  "        } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -exists $currentPanel` \n" +
  8356.                  "            && `scriptedPanel -query -type $currentPanel` == \"dynPaintScriptedPanelType\") {\n" +
  8357.                  "            dynPaintEditor -edit -displayAppearance \"smoothShaded\"\n" +
  8358.                  "                $gDynPaintEditorName;\n" +
  8359.                  "        }\n" +
  8360.                  "    }\n" +
  8361.                  "}\n")
  8362.     DisplaySmoothShaded;
  8363.  
  8364. //    Display Shaded and Textured for current panel.
  8365. //
  8366. runTimeCommand -default true
  8367.     -annotation ("Shaded and Textured Display")
  8368.     -category   ("Modeling Panel")
  8369.     -command    ( "{" +
  8370.                    "  string $currentPanel = `getPanel -withFocus`; " +
  8371.                    "  string $panelType = `getPanel -to $currentPanel`;" +
  8372.                    "  if ($panelType ==  \"modelPanel\") { " +
  8373.                    "   modelEditor -edit -da \"smoothShaded\" -displayTextures on " +
  8374.                    "       -dl \"default\" $currentPanel;" +
  8375.                    "  } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -ex $currentPanel` && `scriptedPanel -q -type $currentPanel` == \"dynPaintScriptedPanelType\") {" +
  8376.                    "     dynPaintEditor -e -dtx 1 -dsa \"smoothShaded\" -dsl \"default\" $gDynPaintEditorName;" +
  8377.                    "  }" +
  8378.                    "}")
  8379.     DisplayShadedAndTextured;
  8380.     
  8381. //    Display Light for current panel.
  8382. //
  8383. runTimeCommand -default true
  8384.     -annotation ("Turn on Light Display")
  8385.     -category   ("Modeling Panel")
  8386.     -command    ( "{" +
  8387.                    "  string $currentPanel = `getPanel -withFocus`; " +
  8388.                    "  string $panelType = `getPanel -to $currentPanel`;" +
  8389.                    "  if ($panelType ==  \"modelPanel\") { " +
  8390.                    "   modelEditor -edit -dl \"all\" $currentPanel;" +
  8391.                    "  } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -ex $currentPanel` && `scriptedPanel -q -type $currentPanel` == \"dynPaintScriptedPanelType\") {" +
  8392.                    "     dynPaintEditor -e -dtx 1 -dsl \"all\" $gDynPaintEditorName;" +
  8393.                    "  }" +
  8394.                    "}")
  8395.     DisplayLight;
  8396.     
  8397. //    Toggle Backface Culling for current panel
  8398. //
  8399. runTimeCommand -default true
  8400.     -annotation ("Toggle Backface Culling")
  8401.     -category   ("Modeling Panel")
  8402.     -command    ( "{" +
  8403.                    "  string $currentPanel = `getPanel -withFocus`; " +
  8404.                    "  string $panelType = `getPanel -to $currentPanel`;" +
  8405.                    "  if ($panelType ==  \"modelPanel\") { " +
  8406.                    "    int $culling = `modelEditor -query -backfaceCulling $currentPanel`;" +
  8407.                    "    modelEditor -edit -backfaceCulling (1 - $culling) $currentPanel;" +
  8408.                    "  }" +
  8409.                    "}")
  8410.     ToggleBackfaceCulling;
  8411.  
  8412. //    Shading Marking Menu.
  8413. //
  8414. runTimeCommand -default true 
  8415.     -annotation ("Shading Marking Menu")
  8416.     -category   ("Modeling Panel")
  8417.     -command    ("buildShadingMM") 
  8418.     DisplayShadingMarkingMenu;
  8419.  
  8420. runTimeCommand -default true 
  8421.     -annotation ("Shading Marking Menu Pop Down")
  8422.     -category   ("Modeling Panel")
  8423.     -command    ("MarkingMenuPopDown") 
  8424.     DisplayShadingMarkingMenuPopDown;
  8425.  
  8426. //    Frame selection in current panel view.
  8427. //
  8428. runTimeCommand -default true 
  8429.         -annotation ("Fit Selection in Active Panel")
  8430.     -category   ("Modeling Panel")
  8431.     -command    ("fitPanel -selected") 
  8432.     FrameSelected;
  8433.  
  8434. //    Frame all in current panel view.
  8435. //
  8436. runTimeCommand -default true 
  8437.         -annotation ("Fit Selection in All Panels")
  8438.     -category   ("Modeling Panel")
  8439.     -command    ("fitPanel -all") 
  8440.     FrameAll;
  8441.  
  8442. //    Show select all Marking Menu.
  8443. //
  8444. runTimeCommand -default true 
  8445.     -annotation ("Fit All in Active Panel, with Marking Menu (Press)")
  8446.     -category   ("Modeling Panel")
  8447.     -command    ("buildSelectAllMM")
  8448.     SelectAllMarkingMenu;
  8449.  
  8450. runTimeCommand -default true 
  8451.     -annotation ("Fit All in Active Panel, with Marking Menu (Release)")
  8452.     -category   ("Modeling Panel")
  8453.     -command    ("buildSelectAllMM_release")
  8454.     SelectAllMarkingMenuPopDown;
  8455.  
  8456. //
  8457. //    Status Line.
  8458. //
  8459. // ----------------------------------------------------------------------
  8460.  
  8461. //    Snap to curve.
  8462. //
  8463. runTimeCommand -default true
  8464.     -annotation ("Toggle Snap to Curve")
  8465.     -category   ("Status Line")
  8466.     -command    ("snapMode -curve (!`snapMode -q -curve`)")
  8467.     SnapToCurve;
  8468.  
  8469. //    Snap to grid.
  8470. //
  8471. runTimeCommand -default true
  8472.     -annotation ("Toggle Snap to Grid")
  8473.     -category   ("Status Line")
  8474.     -command    ("snapMode -grid (!`snapMode -q -grid`)")
  8475.     SnapToGrid;
  8476.  
  8477. //    Snap to point.
  8478. //
  8479. runTimeCommand -default true
  8480.     -annotation ("Toggle Snap to Point")
  8481.     -category   ("Status Line")
  8482.     -command    ("snapMode -point (!`snapMode -q -point`)")
  8483.     SnapToPoint;
  8484.  
  8485. //    Toggle selection mode.
  8486. //
  8487. runTimeCommand -default true 
  8488.     -annotation ("Toggle Object/Component Editing")
  8489.     -category   ("Status Line")
  8490.     -command    ("toggleSelMode")
  8491.     SelectToggleMode;
  8492.  
  8493. //    Selection masks.
  8494. //
  8495. runTimeCommand -default true
  8496.     -annotation ("Select Polygon & Subd Surface Vertices")
  8497.     -category   ("Status Line")
  8498.     -command    ("setSelectMode components Components; " +
  8499.                  "selectType -smp 1 -sme 0 -smf 0 -smu 0 -pv 1 -pe 0 " +
  8500.                  "-pf 0 -puv 0; select -cl;")
  8501.     SelectVertexMask;
  8502.  
  8503. runTimeCommand -default true
  8504.     -annotation ("Select Polygon & Subd Surface Edges")
  8505.     -category   ("Status Line")
  8506.     -command    ("setSelectMode components Components; " +
  8507.                  "selectType -smp 0 -sme 1 -smf 0 -smu 0 -pv 0 -pe 1 " +
  8508.                  "-pf 0 -puv 0; select -cl;")
  8509.     SelectEdgeMask;
  8510.  
  8511. runTimeCommand -default true
  8512.     -annotation ("Select Polygon & Subd Surface Faces")
  8513.     -category   ("Status Line")
  8514.     -command    ("setSelectMode components Components; " +
  8515.                  "selectType -smp 0 -sme 0 -smf 1 -smu 0 -pv 0 -pe 0 " +
  8516.                  "-pf 1 -puv 0; select -cl;")
  8517.     SelectFacetMask;
  8518.  
  8519. runTimeCommand -default true
  8520.     -annotation ("Select Polygon & Subd Surface UVs")
  8521.     -category   ("Status Line")
  8522.     -command    ("setSelectMode components Components; " +
  8523.                  "selectType -pv 0 -pe 0 -pf 0 -puv 1 -smp 0 -sme 0 -smf 0 -smu 1; select -cl;")
  8524.     SelectUVMask;
  8525.  
  8526. runTimeCommand -default true
  8527.     -annotation ("Select Polygon VertexFaces")
  8528.     -category   ("Status Line")
  8529.     -command    ("setSelectMode components Components; "
  8530.         + "selectType -pvf 1 -pe 0 -pf 0 -puv 0; select -cl;")
  8531.     SelectVertexFaceMask;
  8532.  
  8533. //    Select all input/output.
  8534. //
  8535. runTimeCommand -default true 
  8536.     -annotation ("Select All Input")
  8537.     -category   ("Status Line")
  8538.     -command    ("selectAllInputOutput false") 
  8539.     SelectAllInput;
  8540.  
  8541. runTimeCommand -default true 
  8542.     -annotation ("Select All Output")
  8543.     -category   ("Status Line")
  8544.     -command    ("selectAllInputOutput true") 
  8545.     SelectAllOutput;
  8546.  
  8547. //
  8548. //    Tools.
  8549. //
  8550. // ----------------------------------------------------------------------
  8551.  
  8552. //    Enter edit mode.
  8553. //
  8554. runTimeCommand -default true
  8555.     -annotation ("Enter Tool Edit Mode")
  8556.     -category   ("Tools")
  8557.     -command    ("ctxEditMode")
  8558.     EnterEditMode;
  8559.  
  8560. //    Show manipulators.
  8561. //
  8562. runTimeCommand -default true
  8563.     -annotation ("Show Manipulator Tool")
  8564.     -category   ("Tools")
  8565.     -command    ("setToolTo ShowManips")
  8566.     ShowManipulators;
  8567.  
  8568. //    Select tool.
  8569. //
  8570. runTimeCommand -default true
  8571.     -annotation ("Select Tool")
  8572.     -category   ("Tools")
  8573.     -command    ("global string $gSelect; setToolTo $gSelect;")
  8574.     SelectTool;
  8575.  
  8576. runTimeCommand -default true
  8577.     -annotation ("Lasso Tool")
  8578.     -category   ("Tools")
  8579.     -command    ("global string $gLasso; setToolTo $gLasso;")
  8580.     LassoTool;
  8581.  
  8582. //    Select the non sacred tool.
  8583. //
  8584. runTimeCommand -default true
  8585.     -annotation ("NonSacred Tool")
  8586.     -category   ("Tools")
  8587.     -command    ("if ($gNonSacredTool != \"\") {ctxCompletion;  " +
  8588.                  "setToolTo $gNonSacredTool;}")
  8589.     NonSacredTool;
  8590.  
  8591. //    Show translate Marking Menu.
  8592. //
  8593. runTimeCommand -default true
  8594.     -annotation ("Move Tool Marking Menu")
  8595.     -category   ("Tools")
  8596.     -command    ("buildXYZTransMM")
  8597.     TranslateToolMarkingMenu;
  8598.  
  8599. runTimeCommand -default true
  8600.     -annotation ("Move Tool Marking Menu Pop Down")
  8601.     -category   ("Tools")
  8602.     -command    ("MarkingMenuPopDown")
  8603.     TranslateToolMarkingMenuPopDown;
  8604.  
  8605. //    Show rotate Marking Menu.
  8606. //
  8607. runTimeCommand -default true
  8608.     -annotation ("Rotate Tool Marking Menu")
  8609.     -category   ("Tools")
  8610.     -command    ("buildXYZRotMM") 
  8611.     RotateToolMarkingMenu;
  8612.  
  8613. runTimeCommand -default true
  8614.     -annotation ("Rotate Tool Marking Menu Pop Down")
  8615.     -category   ("Tools")
  8616.     -command    ("MarkingMenuPopDown") 
  8617.     RotateToolMarkingMenuPopDown;
  8618.  
  8619. //    Show scale Marking Menu.
  8620. //
  8621. runTimeCommand -default true
  8622.     -annotation ("Scale Tool Marking Menu")
  8623.     -category   ("Tools")
  8624.     -command    ("buildXYZScaleMM") 
  8625.     ScaleToolMarkingMenu;
  8626.  
  8627. runTimeCommand -default true
  8628.     -annotation ("Scale Tool Marking Menu Pop Down")
  8629.     -category   ("Tools")
  8630.     -command    ("MarkingMenuPopDown") 
  8631.     ScaleToolMarkingMenuPopDown;
  8632.  
  8633. //    Translate with snap Marking Menu
  8634. //
  8635. runTimeCommand -default true
  8636.     -annotation ("Translate Tool With Snap Marking Menu")
  8637.     -category   ("Tools")
  8638.     -command    ("buildTranslateMM")
  8639.     TranslateToolWithSnapMarkingMenu;
  8640.  
  8641. runTimeCommand -default true
  8642.     -annotation ("Translate Tool With Snap Marking Menu Pop Down")
  8643.     -category   ("Tools")
  8644.     -command    ("MarkingMenuPopDown")
  8645.     TranslateToolWithSnapMarkingMenuPopDown;
  8646.  
  8647. //    Rotate with snap Marking Menu
  8648. //
  8649. runTimeCommand -default true
  8650.     -annotation ("Rotate Tool With Snap Marking Menu")
  8651.     -category   ("Tools")
  8652.     -command    ("buildRotateMM")
  8653.     RotateToolWithSnapMarkingMenu;
  8654.  
  8655. runTimeCommand -default true
  8656.     -annotation ("Rotate Tool With Snap Marking Menu Pop Down")
  8657.     -category   ("Tools")
  8658.     -command    ("MarkingMenuPopDown")
  8659.     RotateToolWithSnapMarkingMenuPopDown;
  8660.  
  8661. //    Scale with snap Marking Menu
  8662. //
  8663. runTimeCommand -default true
  8664.     -annotation ("Scale Tool With Snap Marking Menu")
  8665.     -category   ("Tools")
  8666.     -command    ("buildScaleMM")
  8667.     ScaleToolWithSnapMarkingMenu;
  8668.  
  8669. runTimeCommand -default true
  8670.     -annotation ("Scale Tool With Snap Marking Menu Pop Down")
  8671.     -category   ("Tools")
  8672.     -command    ("MarkingMenuPopDown")
  8673.     ScaleToolWithSnapMarkingMenuPopDown;
  8674.  
  8675. //    Show select object Marking Menu.
  8676. //
  8677. runTimeCommand -default true
  8678.     -annotation ("Select Tool Marking Menu")
  8679.     -category   ("Tools")
  8680.     -command    ("buildSelectObjectMM") 
  8681.     SelectToolMarkingMenu;
  8682.  
  8683. runTimeCommand -default true
  8684.     -annotation ("Select Tool Marking Menu Pop Down")
  8685.     -category   ("Tools")
  8686.     -command    ("MarkingMenuPopDown") 
  8687.     SelectToolMarkingMenuPopDown;
  8688.  
  8689. //    Show select component Marking Menu.
  8690. //
  8691. runTimeCommand -default true
  8692.     -annotation ("Select Tool Component Marking Menu")
  8693.     -category   ("Tools")
  8694.     -command    ("buildSelectComponentMM") 
  8695.     SelectComponentToolMarkingMenu;
  8696.  
  8697. runTimeCommand -default true
  8698.     -annotation ("Select Tool Component Marking Menu Pop Down")
  8699.     -category   ("Tools")
  8700.     -command    ("MarkingMenuPopDown") 
  8701.     SelectComponentToolMarkingMenuPopDown;
  8702.  
  8703. //    Show select polygon Marking Menu.
  8704. //
  8705. runTimeCommand  -default true
  8706.     -annotation ("Select Tool Polygon Marking Menu")
  8707.     -category   ("Tools")
  8708.     -command    ("buildPolyMM") 
  8709.     SelectPolygonToolMarkingMenu;
  8710.  
  8711. runTimeCommand  -default true
  8712.     -annotation ("Select Tool Polygon Marking Menu Pop Down")
  8713.     -category   ("Tools")
  8714.     -command    ("MarkingMenuPopDown") 
  8715.     SelectPolygonToolMarkingMenuPopDown;
  8716.  
  8717. //    Show select mask Marking Menu.
  8718. //
  8719. runTimeCommand -default true
  8720.     -annotation ("Select Tool Mask Marking Menu")
  8721.     -category   ("Tools")
  8722.     -command    ("buildSelectMaskMM") 
  8723.     SelectMaskToolMarkingMenu;
  8724.  
  8725. runTimeCommand -default true
  8726.     -annotation ("Select Tool Mask Marking Menu Pop Down")
  8727.     -category   ("Tools")
  8728.     -command    ("MarkingMenuPopDown") 
  8729.     SelectMaskToolMarkingMenuPopDown;
  8730.  
  8731. //    Time Dragger Tool (aka Virtual Time Slider).
  8732. //
  8733. runTimeCommand -default true
  8734.     -annotation ("Activate Virtual Time Slider")
  8735.     -category   ("Tools")
  8736.     -command    ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
  8737.                  "setToolTo TimeDragger")
  8738.     TimeDraggerToolActivate;
  8739.  
  8740. runTimeCommand -default true
  8741.     -annotation ("Deactivate Virtual Time Slider")
  8742.     -category   ("Tools")
  8743.     -command    ("invokeLastAction")
  8744.     TimeDraggerToolDeactivate;
  8745.  
  8746. //    Move Nearest Picked Key tool.
  8747. //
  8748. runTimeCommand -default true
  8749.     -annotation ("Activate Move Nearest Picked Key Mode")
  8750.     -category   ("Tools")
  8751.     -command    ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
  8752.                  "setToolTo directKeySuperContext")
  8753.     MoveNearestPickedKeyToolActivate;
  8754.  
  8755. runTimeCommand -default true
  8756.     -annotation ("Deactivate Move Nearest Picked Key Mode")
  8757.     -category   ("Tools")
  8758.     -command    ("invokeLastAction")
  8759.     MoveNearestPickedKeyToolDeactivate;
  8760.  
  8761. //    Add Key tool.
  8762. //
  8763. runTimeCommand -default true
  8764.     -annotation ("Activate Add Key Mode")
  8765.     -category   ("Tools")
  8766.     -command    ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
  8767.                  "setToolTo setKeySuperContext")
  8768.     AddKeyToolActivate;
  8769.  
  8770. runTimeCommand -default true
  8771.     -annotation ("Deactivate Add Key Mode")
  8772.     -category   ("Tools")
  8773.     -command    ("invokeLastAction")
  8774.     AddKeyToolDeactivate;
  8775.  
  8776. //    Insert Key tool.
  8777. //
  8778. runTimeCommand -default true
  8779.     -annotation ("Activate Insert Key Mode")
  8780.     -category   ("Tools")
  8781.     -command    ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
  8782.                  "setToolTo insertKeySuperContext")
  8783.     InsertKeyToolActivate;
  8784.  
  8785. runTimeCommand -default true
  8786.     -annotation ("Deactivate Insert Key Mode")
  8787.     -category   ("Tools")
  8788.     -command    ("invokeLastAction")
  8789.     InsertKeyToolDeactivate;
  8790.  
  8791. //    Invoke last action.
  8792. //
  8793. runTimeCommand -default true
  8794.     -annotation ("Invoke Last Action")
  8795.     -category   ("Tools")
  8796.     -command    ("invokeLastAction")
  8797.     LastActionTool;
  8798.  
  8799. //    Complete current tool.
  8800. //
  8801. runTimeCommand -default true
  8802.     -annotation ("Complete current Tool")
  8803.     -category   ("Tools")
  8804.     -command    ("ctxCompletion")
  8805.     CompleteCurrentTool;
  8806.  
  8807. //    Abort current tool.
  8808. //
  8809. runTimeCommand -default true
  8810.     -annotation ("Abort current Tool")
  8811.     -category   ("Tools")
  8812.     -command    ("ctxAbort")
  8813.     AbortCurrentTool;
  8814.  
  8815. //
  8816. //    Playback Controls.
  8817. //
  8818. // ----------------------------------------------------------------------
  8819.  
  8820. //    Move to next key.
  8821. //
  8822. runTimeCommand -default true
  8823.     -annotation ("Go to Next Key")
  8824.     -category   ("Playback Controls")
  8825.     -command    ("currentTime -edit `findKeyframe -timeSlider -which next`")
  8826.     NextKey;
  8827.  
  8828. //    Move to previous key.
  8829. //
  8830. runTimeCommand -default true
  8831.     -annotation ("Go to Previous Key")
  8832.     -category   ("Playback Controls")
  8833.     -command    ("currentTime -edit `findKeyframe -timeSlider  " +
  8834.                  "-which previous`")
  8835.     PreviousKey;
  8836.  
  8837. //    Move to next frame.
  8838. //
  8839. runTimeCommand -default true
  8840.     -annotation ("Move forward one frame in time")
  8841.     -category   ("Playback Controls")
  8842.     -command    ("currentTime ( `currentTime -q` + 1 )")
  8843.     NextFrame;
  8844.  
  8845. //    Move to previous frame.
  8846. //
  8847. runTimeCommand -default true
  8848.     -annotation ("Move backward one frame in time")
  8849.     -category   ("Playback Controls")
  8850.     -command    ("currentTime ( `currentTime -q` - 1 )")
  8851.     PreviousFrame;
  8852.  
  8853. //    Start playback forewards.
  8854. //
  8855. runTimeCommand -default true
  8856.     -annotation ("Start Play Forwards")
  8857.     -category   ("Playback Controls")
  8858.     -command    ("evalEcho(\"play -forward true\")")
  8859.     PlaybackForward;
  8860.  
  8861. //    Start playback backwards.
  8862. //
  8863. runTimeCommand -default true
  8864.     -annotation ("Start Play Backwards")
  8865.     -category   ("Playback Controls")
  8866.     -command    ("evalEcho(\"play -forward false\")")
  8867.     PlaybackBackward;
  8868.  
  8869. //    Stop playback.
  8870. //
  8871. runTimeCommand -default true
  8872.     -annotation ("Stop Playback")
  8873.     -category   ("Playback Controls")
  8874.     -command    ("evalEcho(\"play -state off\")")
  8875.     PlaybackStop;
  8876.  
  8877. //    Toggle playback.
  8878. //
  8879. runTimeCommand -default true
  8880.     -annotation ("Toggle Playback On/Off")
  8881.     -category   ("Playback Controls")
  8882.     -command    ("togglePlayback")
  8883.     PlaybackToggle;
  8884.  
  8885. //
  8886. //    Navigation commands.
  8887. //
  8888. // ----------------------------------------------------------------------
  8889.  
  8890. //    Turn off Transform no Selection mode.
  8891. //
  8892. runTimeCommand -default true
  8893.     -annotation ("Lock Selection Mode Off")
  8894.     -category   ("Navigation")
  8895.     -command    ("selectPref -xformNoSelect false")
  8896.     TransformNoSelectOffTool;
  8897.  
  8898. //    Turn on Transform no Selection mode.
  8899. //
  8900. runTimeCommand -default true
  8901.     -annotation ("Lock Selection Mode On")
  8902.     -category   ("Navigation")
  8903.     -command    ("selectPref -xformNoSelect true")
  8904.     TransformNoSelectOnTool;
  8905.  
  8906. //    Tumble Tool.
  8907. //
  8908. runTimeCommand -default true
  8909.     -annotation ("Tumble Tool: Rotate the point of view around the "
  8910.                 + "centre of interest (Alt + LMB)")
  8911.     -category   ("Navigation")
  8912.     -command    ("setToolTo tumbleContext")
  8913.     TumbleTool;
  8914.  
  8915. //    Track Tool.
  8916. //
  8917. runTimeCommand -default true
  8918.     -annotation ("Track Tool: Track the camera (Alt + MMB)")
  8919.     -category   ("Navigation")
  8920.     -command    ("setToolTo trackSuperContext")
  8921.     TrackTool;
  8922.  
  8923. //    Dolly Tool.
  8924. //
  8925. runTimeCommand -default true
  8926.     -annotation ("Dolly Tool: Move the camera in and out (Alt + LMB + MMB)")
  8927.     -category   ("Navigation")
  8928.     -command    ("setToolTo dollySuperContext")
  8929.     DollyTool;
  8930.  
  8931. //    Zoom Tool.
  8932. //
  8933. runTimeCommand -default true
  8934.     -annotation ("Zoom Tool: Zoom the camera in and out")
  8935.     -category   ("Navigation")
  8936.     -command    ("setToolTo boxZoomSuperContext")
  8937.     ZoomTool;
  8938.  
  8939. //
  8940. //    Application commands.
  8941. //
  8942. // ----------------------------------------------------------------------
  8943.  
  8944. //    Show NURBs/Poly Modeling UI.
  8945. //
  8946. runTimeCommand -default true
  8947.     -annotation ("Show Modeling UI")
  8948.     -category   ("Application")
  8949.     -command    ("workingMode \"Modeling\"")
  8950.     ShowModelingUI;
  8951.  
  8952. //    Show Animation UI.
  8953. //
  8954. runTimeCommand -default true
  8955.     -annotation ("Show Animation UI")
  8956.     -category   ("Application")
  8957.     -command    ("workingMode \"Animation\"")
  8958.     ShowAnimationUI;
  8959.  
  8960. //    Show Dynamics UI.
  8961. //
  8962. runTimeCommand -default true
  8963.     -annotation ("Show Dynamics UI")
  8964.     -category   ("Application")
  8965.     -command    ("workingMode \"Dynamics\"")
  8966.     ShowDynamicsUI;
  8967.  
  8968. //    Show Rendering UI.
  8969. //
  8970. runTimeCommand -default true
  8971.     -annotation ("Show Rendering UI")
  8972.     -category   ("Application")
  8973.     -command    ("workingMode \"Rendering\"")
  8974.     ShowRenderingUI;
  8975.  
  8976. //    Show All UI.
  8977. //
  8978. runTimeCommand -default true
  8979.     -annotation ("Show All UI")
  8980.     -category   ("Application")
  8981.     -command    ("workingMode \"all\"")
  8982.     ShowAllUI;
  8983.  
  8984. //
  8985. //    Miscellaneous.
  8986. //
  8987. // ----------------------------------------------------------------------
  8988.  
  8989. //    Pop down the Marking Menu.
  8990. //
  8991. runTimeCommand -default true
  8992.     -annotation ("Pop down the Marking Menu")
  8993.     -category   ("Miscellaneous")
  8994.     -command    ("if (`popupMenu -exists tempMM`) { deleteUI tempMM; }" + 
  8995.                  "if (`popupMenu -exists tempMM2`) { deleteUI tempMM2; }")
  8996.     MarkingMenuPopDown;
  8997.  
  8998. //    Go to working frame.
  8999. //
  9000. runTimeCommand -default true
  9001.     -annotation ("Go to working frame")
  9002.     -category   ("Miscellaneous")
  9003.     -command    ("currentWorkingFrame \"goto\"")
  9004.     GoToWorkingFrame;
  9005.  
  9006. //    Set current frame to be the working frame.
  9007. //
  9008. runTimeCommand -default true
  9009.     -annotation ("Set current frame as working frame")
  9010.     -category   ("Miscellaneous")
  9011.     -command    ("currentWorkingFrame \"store\"")
  9012.     SetWorkingFrame;
  9013.  
  9014. //    For Irix only, a command that opens the Desktop File Manager.
  9015. //
  9016. if (`about -irix`) {
  9017.     runTimeCommand -default true
  9018.         -annotation ("Open Desktop File Manager")
  9019.         -category   ("Miscellaneous")
  9020.         -command    ("waitCursor -state on; " +
  9021.                      "system(\"/usr/sbin/fm \" + `getenv \"HOME\"` + \" >/dev/null 2>&1 &\" ); " +
  9022.                      "waitCursor -state off")
  9023.         DesktopFileManager;
  9024. }
  9025.  
  9026. //    Pop current pane.
  9027. //
  9028. runTimeCommand -default true 
  9029.     -annotation ("Pop current pane")
  9030.     -category   ("Miscellaneous")
  9031.     -command    ("panePop") 
  9032.     PanePop;
  9033.  
  9034. runTimeCommand -default true 
  9035.     -annotation ("Close the front window")
  9036.     -category   ("Miscellaneous")
  9037.     -command    ("closeFrontWindow") 
  9038.     CloseFrontWindow;
  9039.  
  9040. //    Set keyboard focus to Command Line.
  9041. //
  9042. runTimeCommand -default true 
  9043.     -annotation ("Set keyboard focus to Command Line")
  9044.     -category   ("Miscellaneous")
  9045.     -command    ("global string $gCommandLine; setFocus $gCommandLine;") 
  9046.     SetFocusToCommandLine;
  9047.  
  9048. //    Set keyboard focus to Numeric Input Line.
  9049. //
  9050. runTimeCommand -default true 
  9051.     -annotation ("Set keyboard focus to Numeric Input Line")
  9052.     -category   ("Miscellaneous")
  9053.     -command    ("global string $gNumericalInputField; " +
  9054.                  "setFocus $gNumericalInputField;") 
  9055.     SetFocusToNumericInputLine;
  9056.  
  9057. //    Show the Attribute Editor or swap with Channel Box.
  9058. //
  9059. runTimeCommand -default true 
  9060.     -annotation ("Open Attribute Editor, or swap with Channel Box")
  9061.     -category   ("Miscellaneous")
  9062.     -command    ("if(`isAttributeEditorVisible`){setChannelBoxVisible(1); " +
  9063.                  "}else{openAEWindow;}") 
  9064.     ShowAttributeEditorOrChannelBox;
  9065.  
  9066. //    Toggle visibility of main menubar.
  9067. //
  9068. runTimeCommand -default true 
  9069.     -annotation ("Toggle Main Menubar Visibility")
  9070.     -category   ("Miscellaneous")
  9071.     -command    ("if (`optionVar -q mainWindowMenubarVis`) " +
  9072.                  "{setMainMenubarVisible 0;} else {setMainMenubarVisible 1;}") 
  9073.     ToggleMainMenubar;
  9074.  
  9075. //    Toggle visibility of panel menubars.
  9076. //
  9077. runTimeCommand -default true 
  9078.     -annotation ("Toggle Panel Menubar Visibility")
  9079.     -category   ("Miscellaneous")
  9080.     -command    ("if (`optionVar -q allowMenusInPanels`) " +
  9081.                  "{toggleMenuBarsInAllPanels 0;} else {toggleMenuBarsInAllPanels 1;}") 
  9082.     TogglePanelMenubar;
  9083.  
  9084. //    Hotbox display style
  9085. //
  9086. runTimeCommand -default true 
  9087.     -annotation ("Hotbox Display Style - Rows Visible")
  9088.     -category   ("Miscellaneous")
  9089.     -command    ("hotBox -dh") 
  9090.     FullHotboxDisplay;
  9091.  
  9092. //    Pixel move.
  9093. //
  9094. runTimeCommand -default true 
  9095.     -annotation ("Move up one pixel")
  9096.     -category   ("Miscellaneous")
  9097.     -command    ("pixelMove 0 1") 
  9098.     PixelMoveUp;
  9099.  
  9100. runTimeCommand -default true 
  9101.     -annotation ("Move down one pixel")
  9102.     -category   ("Miscellaneous")
  9103.     -command    ("pixelMove 0 -1") 
  9104.     PixelMoveDown;
  9105.  
  9106. runTimeCommand -default true 
  9107.     -annotation ("Move left one pixel")
  9108.     -category   ("Miscellaneous")
  9109.     -command    ("pixelMove -1 0") 
  9110.     PixelMoveLeft;
  9111.  
  9112. runTimeCommand -default true 
  9113.     -annotation ("Move right one pixel")
  9114.     -category   ("Miscellaneous")
  9115.     -command    ("pixelMove 1 0") 
  9116.     PixelMoveRight;
  9117.  
  9118. //    Pick walking.
  9119. //
  9120. runTimeCommand -default true 
  9121.     -annotation ("Walk up the current hierarchy")
  9122.     -category   ("Miscellaneous")
  9123.     -command    ("evalEcho(\"pickWalk -d up\")") 
  9124.     PickWalkUp;
  9125.  
  9126. runTimeCommand -default true 
  9127.     -annotation ("Walk down the current hierarchy")
  9128.     -category   ("Miscellaneous")
  9129.     -command    ("evalEcho(\"pickWalk -d down\")") 
  9130.     PickWalkDown;
  9131.  
  9132. runTimeCommand -default true 
  9133.     -annotation ("Walk left in the current hierarchy")
  9134.     -category   ("Miscellaneous")
  9135.     -command    ("evalEcho(\"pickWalk -d left\")") 
  9136.     PickWalkLeft;
  9137.  
  9138. runTimeCommand -default true 
  9139.     -annotation ("Walk right in the current hierarchy")
  9140.     -category   ("Miscellaneous")
  9141.     -command    ("evalEcho(\"pickWalk -d right\")") 
  9142.     PickWalkRight;
  9143.  
  9144. //    Repeat last action at mouse position.
  9145. //
  9146. runTimeCommand -default true 
  9147.     -annotation ("Repeat Last Action At Mouse Position")
  9148.     -category   ("Miscellaneous")
  9149.     -command    ("{float $pos[] = `autoPlace -um`;repeatLast;" 
  9150.         + "move $pos[0] $pos[1] $pos[2];}")
  9151.     RepeatLastActionAtMousePosition;
  9152.  
  9153. //    Go to min frame.
  9154. //
  9155. runTimeCommand -default true
  9156.     -annotation ("Go to Min Frame")
  9157.     -category   ("Miscellaneous")
  9158.     -command    ("currentTime -e `playbackOptions -query -min`")
  9159.     GoToMinFrame;
  9160.  
  9161. //    Marking menu for switching menubar mode.
  9162. //
  9163. runTimeCommand -default true
  9164.     -annotation ("Menubar Tab Switcher Marking Menu")
  9165.     -category   ("Miscellaneous")
  9166.     -command    ("menubarHotkeyMM")
  9167.     UIModeMarkingMenu;
  9168.  
  9169. runTimeCommand -default true
  9170.     -annotation ("Menubar Tab Switcher Marking Menu Pop Down")
  9171.     -category   ("Miscellaneous")
  9172.     -command    ("MarkingMenuPopDown")
  9173.     UIModeMarkingMenuPopDown;
  9174.  
  9175. //    Cycle IK handle sticky state.
  9176. //
  9177. runTimeCommand -default true 
  9178.     -annotation ("Cycle handle sticky state")
  9179.     -category   ("Miscellaneous")
  9180.     -command    ("ikHandleCycleSticky") 
  9181.     CycleIKHandleStickyState;
  9182.  
  9183. //    The following commands change the display smoothness of active (i.e.
  9184. //    selected) objects.  They are similar in function to the menu items 
  9185. //    under "Display->NURBS Smoothness->...", however the menu items can be 
  9186. //    made to operate on all objects, not just selected ones.  Also, the 
  9187. //    menu items have option boxes for setting various parameters, whereas 
  9188. //    the commands below have fixed parameters.
  9189. //
  9190. //    So, in short, do not remove the below commands thinking that their 
  9191. //    functionality is already available in the 
  9192. //    "Display->NURBS Smoothness->..." menu.  The commands are supposed 
  9193. //    to be there, in addition to the menu items.
  9194. //
  9195. //    Low Quality Display.
  9196. //
  9197. runTimeCommand -default true 
  9198.     -annotation ("Low Quality Display Setting")
  9199.     -category   ("Miscellaneous")
  9200.     -command    ("setDisplaySmoothness 1") 
  9201.     LowQualityDisplay;
  9202.  
  9203. //    Medium Quality Display.
  9204. //
  9205. runTimeCommand -default true 
  9206.     -annotation ("Medium Quality Display Setting")
  9207.     -category   ("Miscellaneous")
  9208.     -command    ("setDisplaySmoothness 2") 
  9209.     MediumQualityDisplay;
  9210.  
  9211. //    High Quality Display.
  9212. //
  9213. runTimeCommand -default true 
  9214.     -annotation ("High Quality Display Setting")
  9215.     -category   ("Miscellaneous")
  9216.     -command    ("setDisplaySmoothness 3") 
  9217.     HighQualityDisplay;
  9218.     
  9219. //    Quality Display Marking Menu.
  9220. //
  9221. runTimeCommand -default true 
  9222.     -annotation ("Set Display Quality Marking Menu (Press)")
  9223.     -category   ("Miscellaneous")
  9224.     -command    ("buildQualityDisplayMM") 
  9225.     QualityDisplayMarkingMenu;
  9226. runTimeCommand -default true 
  9227.     -annotation ("Set Display Quality Marking Menu (Release)")
  9228.     -category   ("Miscellaneous")
  9229.     -command    ("buildQualityDisplayMM_release") 
  9230.     QualityDisplayMarkingMenuPopDown;
  9231.  
  9232. //    Select Next Intermediate Object
  9233. //
  9234. runTimeCommand -default true 
  9235.     -annotation ("Select Next Intermediate Object")
  9236.     -category   ("Miscellaneous")
  9237.     -command    ("cycleIntermediateObjectSibling 1") 
  9238.     SelectNextIntermediatObject;
  9239.  
  9240. //    Enable isolate select.
  9241. //
  9242. runTimeCommand -default true
  9243.     -annotation ("Isolate Select")
  9244.     -category   ("Miscellaneous")
  9245.     -command    ( "{" +
  9246.                "  string $currentPanel = `getPanel -withFocus`; " +
  9247.                "  string $panelType = `getPanel -to $currentPanel`;" +
  9248.                "  if ($panelType ==  \"modelPanel\") { " +
  9249.                "     enableIsolateSelect $currentPanel true;" +
  9250.                "  }" +
  9251.                "}")
  9252.     SelectIsolate;                   
  9253.  
  9254. //
  9255. //    Manipulator commands.
  9256. //
  9257. // ----------------------------------------------------------------------
  9258.  
  9259. //    Next manipulator handle.
  9260. //
  9261. runTimeCommand -default true
  9262.     -annotation ("Go to next manipulator handle")
  9263.     -category   ("Manipulator")
  9264.     -command    ("shuffleManipHandleIndex -next")
  9265.     NextManipulatorHandle;
  9266.  
  9267. //    Previous manipulator handle.
  9268. //
  9269. runTimeCommand -default true
  9270.     -annotation ("Go to previous manipulator handle")
  9271.     -category   ("Manipulator")
  9272.     -command    ("shuffleManipHandleIndex -previous")
  9273.     PreviousManipulatorHandle;
  9274.  
  9275. //    Increase manipulator size.
  9276. //
  9277. runTimeCommand -default true
  9278.     -annotation ("Increase Manipulator Size")
  9279.     -category   ("Manipulator")
  9280.     -command    ("manipOptions -r -s 2.0")
  9281.     IncreaseManipulatorSize;
  9282.  
  9283. //    Increase manipulator size.
  9284. //
  9285. runTimeCommand -default true
  9286.     -annotation ("Decrease Manipulator Size")
  9287.     -category   ("Manipulator")
  9288.     -command    ("manipOptions -r -s 0.5")
  9289.     DecreaseManipulatorSize;
  9290.  
  9291. //
  9292. //    Hotbox commands.
  9293. //
  9294. // ----------------------------------------------------------------------
  9295.  
  9296. //    Show the Hotbox.
  9297. //
  9298. runTimeCommand -default true
  9299.     -annotation ("Show Hotbox")
  9300.     -category   ("Hotbox")
  9301.     -command    ("hotBox")
  9302.     ShowHotbox;
  9303.  
  9304. //    Hide the Hotbox.
  9305. //
  9306. runTimeCommand -default true
  9307.     -annotation ("Hide Hotbox")
  9308.     -category   ("Hotbox")
  9309.     -command    ("hotBox -release")
  9310.     HideHotbox;
  9311.  
  9312. //
  9313. //    Artisan commands.
  9314. //
  9315. // ----------------------------------------------------------------------
  9316.  
  9317. //    Opacity virtual slider.
  9318. runTimeCommand -default true 
  9319.     -annotation ("Activate Modify Opacity (Press)")
  9320.     -category   ("Artisan")
  9321.     -command    ("artActivateScreenSlider \"opacity\"")
  9322.     ModifyOpacityPress;
  9323.  
  9324. runTimeCommand -default true 
  9325.     -annotation ("Deactivate Modify Opacity (Release)")
  9326.     -category   ("Artisan")
  9327.     -command    ("artDeactivateScreenSlider")
  9328.     ModifyOpacityRelease;
  9329.  
  9330. //    Value virtual slider.
  9331. runTimeCommand -default true 
  9332.     -annotation ("Activate Modify Value (Press)")
  9333.     -category   ("Artisan")
  9334.     -command    ("artActivateScreenSlider \"value\"")
  9335.     ModifyPaintValuePress;
  9336.  
  9337. runTimeCommand -default true 
  9338.     -annotation ("Deactivate Modify Value (Release)")
  9339.     -category   ("Artisan")
  9340.     -command    ("artDeactivateScreenSlider")
  9341.     ModifyPaintValueRelease;
  9342.  
  9343. //    Paint Operation popup menu.
  9344. runTimeCommand -default true 
  9345.     -annotation ("Maya Artisan Operation, with Marking Menu (Press)")
  9346.     -category   ("Artisan")
  9347.     -command    ("artPaintOperationMenu")
  9348.     PaintOperationMarkingMenuPress;
  9349.  
  9350. runTimeCommand -default true 
  9351.     -annotation ("Maya Artisan Operation, with Marking Menu (Release)")
  9352.     -category   ("Artisan")
  9353.     -command    ("artDeletePopMenu")
  9354.     PaintOperationMarkingMenuRelease;
  9355.  
  9356. //    Flood.
  9357. runTimeCommand -default true 
  9358.     -annotation ("Flood with the current value")
  9359.     -category   ("Artisan")
  9360.     -command    ("artFloodSurfaces")
  9361.     FloodSurfaces;
  9362.  
  9363. //    Show Wireframe on/off.
  9364. runTimeCommand -default true 
  9365.     -annotation ("Toggle Wireframe On/Off")
  9366.     -category   ("Artisan")
  9367.     -command    ("artToggleWireframeDisplay")
  9368.     ToggleWireframeInArtisan;
  9369.  
  9370. //    Turn colour feedback on/off.
  9371. runTimeCommand -default true 
  9372.     -annotation ("Toggle Color Feedback On/Off")
  9373.     -category   ("Artisan")
  9374.     -command    ("artToggleColorFeedback")
  9375.     ToggleColorFeedback;
  9376.  
  9377. //    Pick colour mode.
  9378. runTimeCommand -default true 
  9379.     -annotation ("Activate Pick Color Mode")
  9380.     -category   ("Artisan")
  9381.     -command    ("artActivatePickColorMode")
  9382.     PickColorActivate;
  9383.  
  9384. runTimeCommand -default true 
  9385.     -annotation ("Deactivate Pick Color Mode")
  9386.     -category   ("Artisan")
  9387.     -command    ("artDeactivatePickColorMode")
  9388.     PickColorDeactivate;
  9389.  
  9390. //    PolyBrush commands
  9391. runTimeCommand -default true
  9392.     -annotation ("Poly Brush Operation, with Marking Menu")
  9393.     -category   ("Artisan")
  9394.     -command    ("polyBrushControl -1 0")
  9395.     PolyBrushMarkingMenu;
  9396.  
  9397. runTimeCommand -default true
  9398.     -annotation ("Poly Brush Operation, with Marking Menu Pop Down")
  9399.     -category   ("Artisan")
  9400.     -command    ("deletePopupMenu")
  9401.     PolyBrushMarkingMenuPopDown;
  9402.  
  9403. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  9404.  
  9405. // Old Artisan/Jasper tools.
  9406.  
  9407. //    Reflection.
  9408. runTimeCommand -default true 
  9409.     -annotation ("Toggle Reflection On/Off")
  9410.     -category   ("Artisan")
  9411.     -command    ("toggleReflection")
  9412.     ToggleReflection;
  9413.  
  9414. //    Show Preview on/off.
  9415. runTimeCommand -default true 
  9416.     -annotation ("Toggle Show Preview On/Off")
  9417.     -category   ("Artisan")
  9418.     -command    ("toggleShowPreview")
  9419.     TogglePreview;
  9420.  
  9421. //    Masking on/off.
  9422. runTimeCommand -default true 
  9423.     -annotation ("Toggle Masking CVs On/Off")
  9424.     -category   ("Artisan")
  9425.     -command    ("toggleMaskingCVs")
  9426.     ToggleMaskingCVs;
  9427.  
  9428. //    Toggle common edge display.
  9429. runTimeCommand -default true 
  9430.     -annotation ("Toggle Common Edges Display Mode")
  9431.     -category   ("Artisan")
  9432.     -command    ("changeCommonEdgeDisplay")
  9433.     ToggleCommonEdgesDisplay;
  9434.  
  9435. //    Toggle common corner display.
  9436. runTimeCommand -default true 
  9437.     -annotation ("Toggle Common Corners Display")
  9438.     -category   ("Artisan")
  9439.     -command    ("toggleCommonCornersDisplay")
  9440.     ToggleCommonCornersDisplay;
  9441.  
  9442. //    Flood Stitch.
  9443. runTimeCommand -default true 
  9444.     -annotation ("Stitch Surfaces")
  9445.     -category   ("Artisan")
  9446.     -command    ("puttyFloodStitch")
  9447.     FloodStitch;
  9448.  
  9449. //    Update Erase Surface.
  9450. runTimeCommand -default true 
  9451.     -annotation ("Update Erase Surface")
  9452.     -category   ("Artisan")
  9453.     -command    ("puttyUpdateEraseSurface")
  9454.     UpdateEraseSurface;
  9455.  
  9456. //    Update Reference Surface.
  9457. runTimeCommand -default true 
  9458.     -annotation ("Update Reference Surface")
  9459.     -category   ("Artisan")
  9460.     -command    ("puttyUpdateReferenceSurface")
  9461.     UpdateReferenceSurface;
  9462.  
  9463. //    Toggle Autosmooth.
  9464. runTimeCommand -default true 
  9465.     -annotation ("Toggle Autosmooth")
  9466.     -category   ("Artisan")
  9467.     -command    ("puttyToggleAutosmooth")
  9468.     ToggleAutoSmooth;
  9469.  
  9470.  
  9471. //    Select cluster mode.
  9472. runTimeCommand -default true 
  9473.     -annotation ("Activate Select Cluster Mode (Press)")
  9474.     -category   ("Artisan")
  9475.     -command    ("activateSelectCluster")
  9476.     SelectClusterActivate;
  9477.  
  9478. runTimeCommand -default true 
  9479.     -annotation ("Deactivate Select Cluster Mode (Release)")
  9480.     -category   ("Artisan")
  9481.     -command    ("deactivateSelectCluster")
  9482.     SelectClusterDectivate;
  9483.  
  9484. runTimeCommand -default true 
  9485.     -annotation ("Activate   Modify Reflection Isoparm (Press)")
  9486.     -category   ("Artisan")
  9487.     -command    ("activateReflectIsoparmScreenSlider")
  9488.     ModifyReflectionIsoparmPress;
  9489.  
  9490. runTimeCommand -default true 
  9491.     -annotation ("Deactivate Modify Reflection Isoparm (Release)")
  9492.     -category   ("Artisan")
  9493.     -command    ("artDeactivateScreenSlider")
  9494.     ModifyReflectionIsoparmRelease;
  9495.  
  9496. runTimeCommand -default true 
  9497.     -annotation ("Activate   Modify Target (Press)")
  9498.     -category   ("Artisan")
  9499.     -command    ("activateGlobalScreenSlider")
  9500.     ModifiyTargetPress;
  9501.  
  9502. runTimeCommand -default true 
  9503.     -annotation ("Deactivate Modify Target (Release)")
  9504.     -category   ("Artisan")
  9505.     -command    ("artDeactivateScreenSlider")
  9506.     ModifiyTargetRelease;
  9507.  
  9508. runTimeCommand -default true 
  9509.     -annotation ("Set Modify Target, with Marking Menu (Press)")
  9510.     -category   ("Artisan")
  9511.     -command    ("setGlobalScreenSliderMode")
  9512.     ModifyTargetMarkingMenu;
  9513.  
  9514. runTimeCommand -default true 
  9515.     -annotation ("Set Modify Target, with Marking Menu (Release)")
  9516.     -category   ("Artisan")
  9517.     -command    ("deletePopupMenu")
  9518.     ModifyTargetMarkingMenuPopDown;
  9519.  
  9520. runTimeCommand -default true 
  9521.     -annotation ("Activate Modify Sculpt Reference Vector (Press)")
  9522.     -category   ("Artisan")
  9523.     -command    ("puttyReferenceVector")
  9524.     ModifySculptReferenceVectorMarkingMenu;
  9525.  
  9526. runTimeCommand -default true 
  9527.     -annotation ("Deactivate Modify Sculpt Reference Vector (Release)")
  9528.     -category   ("Artisan")
  9529.     -command    ("deletePopupMenu")
  9530.     ModifySculptReferenceVectorMarkingMenuPopDown;
  9531.  
  9532. //
  9533. //    Brush Tools.
  9534. //
  9535. // ----------------------------------------------------------------------
  9536.  
  9537. //    Commands for activating/deactivating screen sliders.
  9538. //
  9539. // New Artisan Tools.
  9540. runTimeCommand -default true 
  9541.     -annotation ("Activate Modify Upper Brush Radius (Press) / " +
  9542.                  "Modify Paint Effect Brush Scale")
  9543.     -category   ("Brush Tools")
  9544.     -command    ("artActivateScreenSlider \"upper_radius\"")
  9545.     ModifyUpperRadiusPress;
  9546.  
  9547. runTimeCommand -default true 
  9548.     -annotation ("Deactivate Modify Upper Brush Radius (Release)")
  9549.     -category   ("Brush Tools")
  9550.     -command    ("artDeactivateScreenSlider")
  9551.     ModifyUpperRadiusRelease;
  9552.  
  9553. runTimeCommand -default true 
  9554.     -annotation ("Activate Modify Lower Brush Radius (Press) / " +
  9555.                  "Modify Paint Effects Brush Size")
  9556.     -category   ("Brush Tools")
  9557.     -command    ("artActivateScreenSlider \"lower_radius\"")
  9558.     ModifyLowerRadiusPress;
  9559.  
  9560. runTimeCommand -default true 
  9561.     -annotation ("Deactivate Modify Lower Brush Radius (Release)")
  9562.     -category   ("Brush Tools")
  9563.     -command    ("artDeactivateScreenSlider")
  9564.     ModifyLowerRadiusRelease;
  9565.  
  9566. runTimeCommand -default true 
  9567.     -annotation ("Activate Modify Stamp Depth (Press) / " +
  9568.                  "Modify Artisan Brush Stamp Depth")
  9569.     -category   ("Brush Tools")
  9570.     -command    ("artActivateScreenSlider \"stamp_depth\"")
  9571.     ModifyStampDepthPress;
  9572.  
  9573. runTimeCommand -default true 
  9574.     -annotation ("Deactivate Modify Stamp Depth (Release)")
  9575.     -category   ("Brush Tools")
  9576.     -command    ("artDeactivateScreenSlider")
  9577.     ModifyStampDepthRelease;
  9578.  
  9579. runTimeCommand -default true 
  9580.     -annotation ("Activate Modify Max Displacement (Press) / " +
  9581.                  "Modify Paint Effect Surface Offset")
  9582.     -category   ("Brush Tools")
  9583.     -command    ("artActivateScreenSlider \"displacement\"")
  9584.     ModifyDisplacementPress;
  9585.  
  9586. runTimeCommand -default true 
  9587.     -annotation ("Deactivate Modify Max Displacement (Release)")
  9588.     -category   ("Brush Tools")
  9589.     -command    ("artDeactivateScreenSlider")
  9590.     ModifyDisplacementRelease;
  9591.  
  9592. //
  9593. //    Global disk cache commands.
  9594. //
  9595. // ----------------------------------------------------------------------
  9596.  
  9597. runTimeCommand -default true
  9598.     -annotation ("Create Disk Cache for Jiggle Deformer")
  9599.     -category   ("Disk Cache")
  9600.     -command    ("performDiskCache true false mcj")
  9601.     CreateDiskCache;
  9602.  
  9603. runTimeCommand -default true
  9604.     -annotation ("Create Disk Cache Options")
  9605.     -category   ("Disk Cache")
  9606.     -command    ("performDiskCache true true mcj")
  9607.     CreateDiskCacheOptions;
  9608.  
  9609. runTimeCommand -default true
  9610.     -annotation ("Global Disk Cache Controls")
  9611.     -category   ("Disk Cache")
  9612.     -command    ("globalDiskCacheControl")
  9613.     GlobalDiskCacheControl;
  9614.  
  9615. //
  9616. //    UV Texture Editor commands.
  9617. //
  9618. // ----------------------------------------------------------------------
  9619.  
  9620. runTimeCommand -default true
  9621.     -annotation ("Select Shell: Select UV Shell(s) for Active UV(s)")
  9622.     -category   ("UV Texture Editor")
  9623.     -command    ("polySelectBorderShell 0")
  9624.     SelectUVShell;
  9625.  
  9626. runTimeCommand -default true
  9627.     -annotation ("Select Shell Border: Select UV Border(s) for Active UV(s)")
  9628.     -category   ("UV Texture Editor")
  9629.     -command    ("polySelectBorderShell 1")
  9630.     SelectUVBorder;
  9631.  
  9632. }
  9633. miscCommands();
  9634.